summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-08 23:14:03 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-08 23:14:07 +0100
commit91debab9ade37293b1ea2ef5eb738c9a1214b6d6 (patch)
tree533ea9eab1323eb32c18318e42ac8157df7887f5
parent397ff35988dfd22f9dcd3ef51eebeeced6622bae (diff)
add NONE, clairfy RESERVED
-rw-r--r--src/include/extractor.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/extractor.h b/src/include/extractor.h
index 78fe627..9f24735 100644
--- a/src/include/extractor.h
+++ b/src/include/extractor.h
@@ -124,8 +124,14 @@ enum EXTRACTOR_MetaFormat
*/
enum EXTRACTOR_MetaType
{
- /* fundamental types */
+ /* available to application for marking an `enum EXTRACTOR_MetaType` as not
+ carrying any meaningful value - never used by libextractor */
+ EXTRACTOR_METATYPE_NONE = -1,
+
+ /* reserved should be used as a terminator (like the '\0'-terminator for strings)
+ and is never used directly by libextractor */
EXTRACTOR_METATYPE_RESERVED = 0,
+
EXTRACTOR_METATYPE_MIMETYPE = 1,
EXTRACTOR_METATYPE_FILENAME = 2,
EXTRACTOR_METATYPE_COMMENT = 3,