summaryrefslogtreecommitdiff
path: root/decoder.c
AgeCommit message (Collapse)Author
2013-05-08Fix double freeBert Vermeulen
2013-05-05Fix various memory leaksBert Vermeulen
2013-05-03Doxygen: Various fixes.Uwe Hermann
2013-05-03Main header is <libsigrokdecode/libsigrokdecode.h> now.Uwe Hermann
This matches the convention used in libsigrok. Potential other headers might end up in libsigrokdecode/, but only libsigrokdecode.h is meant to be #included by frontends directly.
2013-05-03Doxygen: Add @since markers to API functions.Uwe Hermann
Also, document the functions in version.c.
2013-04-23GPL headers: Use correct project name.Uwe Hermann
2013-03-19use GVariant for passing decoder options and probesBert Vermeulen
Decoder options are now exposed in struct srd_decoder, via a GSList of the new struct srd_decoder_option. The 'def' field represents the default value as set in the decoder, converted to GVariant. This allows a library user to determine the type as well as default value.
2013-02-09Doxygen: Initial groups and topic short descriptions.Uwe Hermann
2013-02-09Doxygen: Add @file items for the relevant files.Uwe Hermann
These short descriptions are shown in the "Files" section of the Doxygen output.
2013-02-09Doxygen: Mark private functions/variables properly.Uwe Hermann
2013-02-02Bring back temporarily reverted changes.Uwe Hermann
2013-01-27Temporarily revert API changes in preparation of release.Uwe Hermann
The upcoming libsigrokdecode release should not contain any API changes so it is compatible with existing released frontends (sigrok-cli 0.3.1).
2013-01-01constify srd_decoder_list() outputBert Vermeulen
2012-05-10srd: Support for one or more optional probes.Uwe Hermann
In the protocol decoder you always get all required probes, then _all_ optional probes in the list of probes in the decode() call. Example: (r1, r2, r3, o1, o2, o3, o4) = pins In this case r1-r3 are required probes, o1-o4 are optional probes. However, the value of valid/used/specified probes will be 0 or 1, whereas the value of probes that were not specified/assigned by the user will be (at the moment) 42. The PD can check for a valid probe like this: if p in (0, 1): ... Or check for an invalid probe: if (p > 1): ... The value of 42 could change to be -1 or None later.
2012-05-09srd: Fix a few Doxygen errors.Uwe Hermann
2012-03-28srd: Some more (optional) consistency renames.Uwe Hermann
2012-03-28srd/cli/qt: Some more API consistency renames.Uwe Hermann
2012-03-21srd: Drop unused inputformats/outputformats entries.Uwe Hermann
2012-03-21sr/srd: Small fixes, constifications, doc updates.Uwe Hermann
2012-03-18srd/cli/qt:s/decoders/decoder/ for consistency.Uwe Hermann
2012-03-18srd: Constify lots more parameters.Uwe Hermann
2012-03-18srd: Cosmetics, fix/add Doxygen comments.Uwe Hermann
2012-02-14srd: rename public API functions to srd_thing_action formatBert Vermeulen
2012-02-14srd: don't load all protocol decoders unless we really need to.Bert Vermeulen
2012-02-12srd: last public/private fix, and docs for all publis functions.Bert Vermeulen
2012-02-11srd: rename all instance to instBert Vermeulen
2012-02-10srd: Add/improve g_malloc() error messages.Uwe Hermann
2012-02-10srd: Add/use SRD_API/SRD_PRIV macros.Uwe Hermann
This is not yet finished, more things should be made private.
2012-02-10srd: Cosmetics, whitespace, coding-style fixes.Uwe Hermann
2012-02-01srd: rename extra_probes to optional_probesBert Vermeulen
2012-01-31srd: free all decoder instances when unloading decodersBert Vermeulen
2012-01-30srd: removed stray malloc()Bert Vermeulen
2012-01-30srd: clear objects after final decref, so it doesn't happen twiceBert Vermeulen
2012-01-26srd: Remove manual log domain ("srd: ") prefixes.Uwe Hermann
2012-01-23srd: use new exception system everywhereBert Vermeulen
2012-01-23srd: minor code cleanupBert Vermeulen
2012-01-22srd: make all debugging and error reporting uniformBert Vermeulen
2012-01-21srd: support for mapping probesBert Vermeulen
2012-01-21srd: decoder class structure check belongs in module loaderBert Vermeulen
2012-01-19srd: fix decoder loading, and back to using glib dirent wrappersBert Vermeulen
2012-01-19srd: don't check directory structure a PD is in, but what it implements.Bert Vermeulen
Also added extra check to require start() and decode() methods in the PD's Decoder class.
2012-01-19srd: simplified error checking, in preparation for more of itBert Vermeulen
2012-01-15srd: Each PD now has its own subdirectory.Uwe Hermann
2012-01-15srd: handle missing module docstrings betterBert Vermeulen
2012-01-15srd: clean up module loading/unloading, and the decoder structBert Vermeulen
PDs are now checked for a proper Decoder object, with at least the required attributes. The author, long_desc and func attributes in the decoder object are gone.
2012-01-10srd: annotation -> annotations.Uwe Hermann
In the PDs (Python code), the 'annotation' variable/attribute is a list of annotation formats. Use the plural 'annotations' as we do for other lists such as 'inputs', 'outputs', 'probes', 'options', and so on.
2012-01-10Stacked protocol decoders implementation.Bert Vermeulen
The DDC decoder takes input from the I2C PD.
2012-01-09code cleanupBert Vermeulen
2012-01-07check before calling PyObject_GetAttrString(): this throws an exception.Bert Vermeulen
2012-01-07convert data coming in from a PD to C structsBert Vermeulen
This is in preparation for passing annotation data back to the calling frontend, and python data up to the next protocol in the stack.