]> sigrok.org Git - libsigrok.git/blobdiff - src/libsigrok-internal.h
Introduce OutputFlag
[libsigrok.git] / src / libsigrok-internal.h
index 627e243cc8348652d5c321fd9664bf6e578b8708..b127d0ef14efd6481f6100296b64e2eb8076a7e8 100644 (file)
@@ -368,6 +368,11 @@ struct sr_output {
         */
        const struct sr_dev_inst *sdi;
 
+       /**
+        * The name of the file that the data should be written to.
+        */
+       const char *filename;
+
        /**
         * A generic pointer which can be used by the module to keep internal
         * state between calls into its callback functions.
@@ -407,6 +412,13 @@ struct sr_output_module {
         */
        const char *const *exts;
 
+       /**
+        * Bitfield containing flags that describe certain properties
+        * this output module may or may not have.
+        * @see sr_output_flags
+        */
+       const uint64_t flags;
+
        /**
         * Returns a NULL-terminated list of options this module can take.
         * Can be NULL, if the module has no options.