From: Bert Vermeulen Date: Fri, 15 Aug 2014 17:59:38 +0000 (+0200) Subject: input: Frontends don't need to see SR_INPUT_META_*. X-Git-Tag: libsigrok-0.4.0~1113 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=20e8882106bcd100414573f53b1a2e9a720cae9b;p=libsigrok.git input: Frontends don't need to see SR_INPUT_META_*. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index dd6307de..1f20e1d6 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -443,21 +443,6 @@ struct sr_option { GSList *values; }; -/** 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, -}; - struct sr_input; struct sr_input_module; struct sr_output; diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index 0214fffb..2cf39b2b 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -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 { /**