X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=libsigrokdecode.h;h=fdf60526657c21bb280f6c5236f90944669942fa;hb=8830db5df55241e1ea775a70671ecb11235cf3c1;hp=3175fd8b94a1f35d0b50d89dc9919b813ec6cd86;hpb=37b94c205e4c1c43e77e29993108f23066cbce05;p=libsigrokdecode.git diff --git a/libsigrokdecode.h b/libsigrokdecode.h index 3175fd8..fdf6052 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -168,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. @@ -205,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; @@ -300,7 +312,7 @@ SRD_API int srd_decoder_unload_all(void); SRD_API int srd_inst_option_set(struct srd_decoder_inst *di, GHashTable *options); SRD_API int srd_inst_probe_set_all(struct srd_decoder_inst *di, - GHashTable *probes); + GHashTable *probes, int unit_size); SRD_API struct srd_decoder_inst *srd_inst_new(struct srd_session *sess, const char *id, GHashTable *options); SRD_API int srd_inst_stack(struct srd_session *sess,