commit 91debab9ade37293b1ea2ef5eb738c9a1214b6d6
parent 397ff35988dfd22f9dcd3ef51eebeeced6622bae
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 8 Feb 2022 23:14:03 +0100
add NONE, clairfy RESERVED
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git 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,