]> sigrok.org Git - libsigrokdecode.git/blobdiff - libsigrokdecode.h.in
Split annotation-specific output to another struct
[libsigrokdecode.git] / libsigrokdecode.h.in
index 3eaace655d6e1cc28cafc1c10f8d730a747e7973..3beff35ffe4d804094bfee6b69657b077435f338 100644 (file)
@@ -160,7 +160,7 @@ enum {
  */
 enum {
        SRD_OUTPUT_ANN,
-       SRD_OUTPUT_PROTO,
+       SRD_OUTPUT_PYTHON,
        SRD_OUTPUT_BINARY,
 };
 
@@ -255,9 +255,12 @@ 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);