summaryrefslogtreecommitdiff
path: root/src/journal/journal-def.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-12-10 15:18:49 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-12-13 00:47:23 +0100
commit7851983162ef851d5b9ce12bd88de86fc402f88a (patch)
treef35d9c41952e184e3e114fcf53846c8cd730ec7a /src/journal/journal-def.h
parentd05089d86ef032b245c7f928e623b88c82998ab0 (diff)
journal: have a named enum ObjectType
Diffstat (limited to 'src/journal/journal-def.h')
-rw-r--r--src/journal/journal-def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/journal-def.h b/src/journal/journal-def.h
index 005e5fa149..ab089cb966 100644
--- a/src/journal/journal-def.h
+++ b/src/journal/journal-def.h
@@ -52,7 +52,7 @@ typedef struct HashItem HashItem;
typedef struct FSSHeader FSSHeader;
/* Object types */
-enum {
+typedef enum ObjectType {
OBJECT_UNUSED, /* also serves as "any type" or "additional context" */
OBJECT_DATA,
OBJECT_FIELD,
@@ -62,7 +62,7 @@ enum {
OBJECT_ENTRY_ARRAY,
OBJECT_TAG,
_OBJECT_TYPE_MAX
-};
+} ObjectType;
/* Object flags */
enum {