summaryrefslogtreecommitdiffstats
path: root/src/journal/journal-def.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-12-12 22:51:24 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-12-13 00:47:23 +0100
commitd05089d86ef032b245c7f928e623b88c82998ab0 (patch)
tree96bcef531c7e8b74479ec233ea33990b258b67b0 /src/journal/journal-def.h
parentjournal: consistently allow type==0 to mean "any type" (diff)
downloadsystemd-d05089d86ef032b245c7f928e623b88c82998ab0.tar.xz
systemd-d05089d86ef032b245c7f928e623b88c82998ab0.zip
journal: consistently use OBJECT_<type> names instead of numbers
Note that numbers 0 and -1 are both replaced with OBJECT_UNUSED, because they are treated the same everywhere (e.g. type_to_context() translates them both to 0).
Diffstat (limited to 'src/journal/journal-def.h')
-rw-r--r--src/journal/journal-def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-def.h b/src/journal/journal-def.h
index e55fa196f2..005e5fa149 100644
--- a/src/journal/journal-def.h
+++ b/src/journal/journal-def.h
@@ -53,7 +53,7 @@ typedef struct FSSHeader FSSHeader;
/* Object types */
enum {
- OBJECT_UNUSED,
+ OBJECT_UNUSED, /* also serves as "any type" or "additional context" */
OBJECT_DATA,
OBJECT_FIELD,
OBJECT_ENTRY,