X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=libsigrokdecode.h;h=1603582a0cc5f80e8c2ce32ad10a32a97743672e;hp=3a72d2ccee5779801847185b2051a2dc53f8f0a9;hb=066d659423912025b5b680c5bf74fca11aa72398;hpb=909fbf4181ab401a371265567505ffa1403f73d6 diff --git a/libsigrokdecode.h b/libsigrokdecode.h index 3a72d2c..1603582 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -133,8 +133,6 @@ enum { SRD_OUTPUT_META, }; -#define SRD_MAX_NUM_PROBES 64 - enum { SRD_CONF_SAMPLERATE = 10000, }; @@ -170,6 +168,12 @@ struct srd_decoder { */ GSList *annotations; + /** + * List of annotation rows (row items: id, description, and a list + * of annotation classes belonging to this row). + */ + GSList *annotation_rows; + /** * List of NULL-terminated char[], containing descriptions of the * supported binary output. @@ -207,6 +211,12 @@ struct srd_decoder_option { GVariant *def; }; +struct srd_decoder_annotation_row { + char *id; + char *desc; + GSList *ann_classes; +}; + struct srd_decoder_inst { struct srd_decoder *decoder; struct srd_session *sess; @@ -216,6 +226,7 @@ struct srd_decoder_inst { int dec_num_probes; int *dec_probemap; int data_unitsize; + uint8_t *probe_samples; GSList *next_di; };