TODO

From sigrok
Revision as of 02:32, 17 March 2010 by Biot (talk | contribs) (→‎libsigrok)
Jump to navigation Jump to search

This is a random list of TODO items for the code and/or ideas for improvements.

General

  • Remove dependency on glib and gmodule (various reasons), at least in libsigrok, probably also in sigrok-cli.

libsigrok

  • Test whether the libusb 1.0 Windows port works (seems to build fine using Mingw).
  • Merge all header files in a single sigrok.h (possibly another sigrok-internal.h which is not visible to the lib users).
  • sigrok_errno:

Most backend functions return status as an integer, which is SIGROK_OK if all went well, or SIGROK_NOK and similar if an error occurred.

However there is no way to pass any information back as to what went wrong -- and this is important for user-friendliness.

Perhaps an error code is not enough; maybe something like sigrok_errno(errorcode, "unsupported device") is better.

Both the cmdline and GUI interfaces need this, really, so it should be a backend library thing.

libsigrokdecode

  • Keep this independent of libsigrok and any logic analyzer hardware. It should work purely on streams / buffers of bytes to be usable by other projects.

sigrok-cli

sigrok-gui

Decoders