summaryrefslogtreecommitdiff
path: root/sigrokdecode.h
AgeCommit message (Collapse)Author
2012-03-04sr/srd: s/handler/callback/.Uwe Hermann
We should consistently use the same name for the same thing.
2012-03-02sr: Name all callback data 'cb_data'.Uwe Hermann
2012-03-01sr/srd: Consistency fixes for callbacks.Uwe Hermann
- Callback function pointer typedefs end with _t. - Variables holding callback functions are named 'cb' everywhere.
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-12srd: finish up public/private APIBert Vermeulen
2012-02-12srd: no public API functions use python-specific arguments nowBert Vermeulen
2012-02-12srd: extra module path can now optionally be passed to srd_init()Bert Vermeulen
Also environment variable SIGROKDECODE_DIR, if present, is prepended to the module path.
2012-02-11Rename 'void *' callback parameters to 'user_data'.Uwe Hermann
This is better, both for consistency reasons, and also because 'data' is a bit too generic and might be confusing, especially since we have other 'data' fields in the code in various places.
2012-02-11srd: Every callback should have a 'void *' parameter.Uwe Hermann
This is required in various situations and for various lib users, especially so GUIs which might want to pass specific info via this mechanism.
2012-02-11srd: rename all instance to instBert Vermeulen
2012-02-10srd: Add/improve g_malloc() error messages.Uwe Hermann
2012-02-10srd: Move private symbols to sigrokdecode-internal.h.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-10srd: More consistent log related function names.Uwe Hermann
Also, fix typos, constify some parameters, add more Doxygen comments.
2012-02-05Project-wide consistent naming for #include guards.Uwe Hermann
Document the naming scheme in HACKING.
2012-02-02srd: Add explicit srd_pd_output_callback_t typedef.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-26srd: log: Support for setting a log domain (prefix).Uwe Hermann
2012-01-25srd: Support for registering a custom log handler.Uwe Hermann
2012-01-25srd: properly recurse into PD instances when looking for one.Bert Vermeulen
This fixes the confusion between parallel and linear stacks.
2012-01-24sr: better error reportingBert Vermeulen
2012-01-24srd: change struct srd_pd_output to have a path to the DI, not the decoder.Bert Vermeulen
2012-01-23srd: add python exception catcher, which routes to srd_err() and srd_dbg()Bert Vermeulen
2012-01-21srd: support for mapping probesBert Vermeulen
2012-01-17SRD: support setting per-PD optionsBert Vermeulen
All decoder class options are automatically copied to a newly created instance with their default value, which can be overridden with the GHashTable passed to srd_instance_new(). Currently, only strings and integers are supported as option value types. The type is set by the default value in the decoder class, and enforced when overriding them. Integers can be specified in any format python allows: 10, 0x0a and so on.
2012-01-15srd: PDs now get a logic feed with sample numbers, not time/durationBert 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-15move srd_Decoder to sigrokdecode.h, and rename it in line with srd_logicBert Vermeulen
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-10srd: Finish consistency rename to ANN/PROTO.Uwe Hermann
2012-01-10Stacked protocol decoders implementation.Bert Vermeulen
The DDC decoder takes input from the I2C PD.
2012-01-09code cleanupBert Vermeulen
2012-01-09srd: change output_new() API call to add()Bert Vermeulen
2012-01-08pass PD output to the calling frontend, simple annotation viewer in CLI.Bert Vermeulen
2012-01-07srd: Add SRD_ERR_BUG.Uwe Hermann
2012-01-07expose SRD_OUTPUT_* as symbols in the sigrokdecode module.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.
2012-01-05new srd_logic type implementation for PDs to iterate over.Bert Vermeulen
2011-12-28better python memory managementBert Vermeulen
2011-12-28make time/duration work, at least when loading from a session fileBert Vermeulen
PD decode() call now takes 3 arguments: timeoffset, duration, data as per the current API specification.
2011-12-28new dynamic output stream registration code, not finished.Bert Vermeulen
2011-12-22srd: SRD_ERR_ARGS -> SRD_ERR_ARG.Uwe Hermann
This is done to be consistent with libsigrok's SR_ERR_ARG (nicer that way).
2011-12-22srd: Add logging framework.Uwe Hermann
This includes the (private) functions srd_err() and friends, the (public) SRD_LOG_ERR macros and friends, and the (public) API functions srd_set_loglevel() and srd_get_loglevel().
2011-12-05srd: Initialise struct members by name. Minor other fixes.Gareth McMullin
Restored some prototypes in sigrokdecode.h. Abort sigrok-cli on error while decoding (includes KeyboardInterrupt). Fixed passing metadata to Decoder.start() method.
2011-12-04refactored PD framework, now using new sigrok.Decoder objectBert Vermeulen
This uses the new python unified type/class object API to construct an object for PDs to subclass. The sigrok.Decoder class has a method put() which is implemented as a C function, and receives the PD's object instance as its first parameter.
2011-12-01srd: PDs now explicitly register with sigrok module.Gareth McMullin