]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-journal: add _OBJECT_TYPE_INVALID as usual
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 May 2023 03:52:50 +0000 (12:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 May 2023 05:25:38 +0000 (14:25 +0900)
src/libsystemd/sd-journal/journal-def.h

index 2f048c0198091a12f51d367f78269a66e5e2623d..e52a307c9fb76ebc4bc361acd9263a12640493ec 100644 (file)
@@ -38,7 +38,8 @@ typedef enum ObjectType {
         OBJECT_FIELD_HASH_TABLE,
         OBJECT_ENTRY_ARRAY,
         OBJECT_TAG,
-        _OBJECT_TYPE_MAX
+        _OBJECT_TYPE_MAX,
+        _OBJECT_TYPE_INVALID = -EINVAL,
 } ObjectType;
 
 /* Object flags (note that src/basic/compress.h uses the same values for the compression types) */