summaryrefslogtreecommitdiff
path: root/src/journal/sd-journal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-12-29 15:00:57 +0100
committerLennart Poettering <lennart@poettering.net>2011-12-29 15:00:57 +0100
commitcf244689e9d1ab50082c9ddd0f3c4d1eb982badc (patch)
tree0b2b9438e6269b1e9b4aee155d4eda60f2a8d720 /src/journal/sd-journal.h
parentde97b26ac5e29063632312ec1a20eb6318ca924c (diff)
journald: flush /run to /var as soon as it becomes available
Diffstat (limited to 'src/journal/sd-journal.h')
-rw-r--r--src/journal/sd-journal.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/journal/sd-journal.h b/src/journal/sd-journal.h
index 7f9f78598b..f6b1c955fb 100644
--- a/src/journal/sd-journal.h
+++ b/src/journal/sd-journal.h
@@ -31,19 +31,20 @@
/* TODO:
*
- * - check LE/BE conversion for 8bit, 16bit, 32bit values
- * - implement audit gateway
+ * - OR of matches is borked...
* - extend hash tables table as we go
* - accelerate looking for "all hostnames" and suchlike.
- * - cryptographic hash
- * - OR of matches is borked...
- * - flush /run to /var
* - hookup with systemctl
+ * - handle incomplete header
+ *
* - local deserializer
- * - think about manipulations of header
* - http server
- * - handle incomplete header
* - message catalog
+ *
+ * - check LE/BE conversion for 8bit, 16bit, 32bit values
+ * - cryptographic hash
+ * - think about manipulations of header
+ * - implement audit gateway
*/
/* Write to daemon */
@@ -60,7 +61,13 @@ int sd_journal_stream_fd(const char *tag, int priority, int priority_prefix);
typedef struct sd_journal sd_journal;
-int sd_journal_open(sd_journal **ret);
+enum {
+ SD_JOURNAL_LOCAL_ONLY = 1,
+ SD_JOURNAL_RUNTIME_ONLY = 2,
+ SD_JOURNAL_SYSTEM_ONLY = 4
+};
+
+int sd_journal_open(sd_journal **ret, int flags);
void sd_journal_close(sd_journal *j);
int sd_journal_previous(sd_journal *j);