]> sigrok.org Git - libsigrokdecode.git/blobdiff - libsigrokdecode.h.in
Implement OUTPUT_BINARY
[libsigrokdecode.git] / libsigrokdecode.h.in
index a654373c570048e6a944ac110eb6e73085e27059..b75942808e2421207df994e49014263d7a43dc34 100644 (file)
@@ -202,6 +202,12 @@ struct srd_decoder {
         */
        GSList *annotations;
 
+       /**
+        * List of NULL-terminated char[], containing descriptions of the
+        * supported binary output.
+        */
+       GSList *binary;
+
        /** List of decoder options.  */
        GSList *options;
 
@@ -266,6 +272,11 @@ struct srd_proto_data_annotation {
        int ann_format;
        char **ann_text;
 };
+struct srd_proto_data_binary {
+       int bin_class;
+       uint64_t size;
+       const unsigned char *data;
+};
 
 typedef void (*srd_pd_output_callback_t)(struct srd_proto_data *pdata,
                                         void *cb_data);