]> sigrok.org Git - libsigrok.git/blobdiff - src/libsigrok-internal.h
output: Added preferred file extension field
[libsigrok.git] / src / libsigrok-internal.h
index bd2d4c74b268e1ccf400dc58feff6bb40ac57084..71f65616de52baf7b4705016d0a2aa7d990dea89 100644 (file)
@@ -238,6 +238,13 @@ struct sr_input_module {
         */
        const char *desc;
 
+       /**
+        * A NULL terminated array of strings containing a list of file name
+        * extensions typical for the input file format, or NULL if there is
+        * no typical extension for this file format.
+        */
+       const char *const *exts;
+
        /**
         * Zero-terminated list of metadata items the module needs to be able
         * to identify an input stream. Can be all-zero, if the module cannot
@@ -364,6 +371,13 @@ struct sr_output_module {
         */
        char *desc;
 
+       /**
+        * A NULL terminated array of strings containing a list of file name
+        * extensions typical for the input file format, or NULL if there is
+        * no typical extension for this file format.
+        */
+       const char *const *exts;
+
        /**
         * Returns a NULL-terminated list of options this module can take.
         * Can be NULL, if the module has no options.