X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=libsigrokdecode.h.in;h=a654373c570048e6a944ac110eb6e73085e27059;hp=cec6def197b598680fef718619c49379869c66c7;hb=7ee0c40b4ac605c68a8ec2008ef4ab61a1872475;hpb=f2a5df42ea41e6c4370d4efa1a27ab942ba1ddff diff --git a/libsigrokdecode.h.in b/libsigrokdecode.h.in index cec6def..a654373 100644 --- a/libsigrokdecode.h.in +++ b/libsigrokdecode.h.in @@ -162,6 +162,7 @@ enum { SRD_OUTPUT_ANN, SRD_OUTPUT_PYTHON, SRD_OUTPUT_BINARY, + SRD_OUTPUT_META, }; #define SRD_MAX_NUM_PROBES 64 @@ -249,15 +250,22 @@ struct srd_pd_output { int output_type; struct srd_decoder_inst *di; char *proto_id; + /* Only used for OUTPUT_META. */ + const GVariantType *meta_type; + char *meta_name; + char *meta_descr; }; struct srd_proto_data { uint64_t start_sample; uint64_t end_sample; struct srd_pd_output *pdo; - int ann_format; void *data; }; +struct srd_proto_data_annotation { + int ann_format; + char **ann_text; +}; typedef void (*srd_pd_output_callback_t)(struct srd_proto_data *pdata, void *cb_data);