]> sigrok.org Git - libsigrok.git/blobdiff - src/libsigrok-internal.h
input: Frontends don't need to see SR_INPUT_META_*.
[libsigrok.git] / src / libsigrok-internal.h
index 0214fffbb6492b9e47d9652e9dda7393a9e0136c..2cf39b2b3f3c0060c78c477b464c95da1b399ea0 100644 (file)
@@ -168,6 +168,21 @@ struct sr_context {
 #endif
 };
 
+/** Input module metadata keys. */
+enum sr_input_meta_keys {
+       /** The input filename, if there is one. */
+       SR_INPUT_META_FILENAME = 0x01,
+       /** The input file's size in bytes. */
+       SR_INPUT_META_FILESIZE = 0x02,
+       /** The first 128 bytes of the file, provided as a GString. */
+       SR_INPUT_META_HEADER = 0x04,
+       /** The file's MIME type. */
+       SR_INPUT_META_MIMETYPE = 0x08,
+
+       /** The module cannot identify a file without this metadata. */
+       SR_INPUT_META_REQUIRED = 0x80,
+};
+
 /** Input (file) module struct. */
 struct sr_input {
        /**