chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journald: forward all syslog messages to syslogd
[elogind.git]
/
src
/
journal
/
sd-journal.h
diff --git
a/src/journal/sd-journal.h
b/src/journal/sd-journal.h
index 7f9f78598b7917a9696a0c52bb3b2ac1461e1314..97f9f0fa13e4177e4ee086ee9e1157257c3bc14a 100644
(file)
--- a/
src/journal/sd-journal.h
+++ b/
src/journal/sd-journal.h
@@
-31,19
+31,21
@@
/* TODO:
*
/* 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.
* - 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
* - hookup with systemctl
+ * - handle incomplete header
+ * - write unit files
+ *
* - local deserializer
* - local deserializer
- * - think about manipulations of header
* - http server
* - http server
- * - handle incomplete header
* - message catalog
* - message catalog
+ *
+ * - check LE/BE conversion for 8bit, 16bit, 32bit values
+ * - cryptographic hash
+ * - think about manipulations of header
+ * - implement audit gateway
*/
/* Write to daemon */
*/
/* Write to daemon */
@@
-60,7
+62,13
@@
int sd_journal_stream_fd(const char *tag, int priority, int priority_prefix);
typedef struct sd_journal sd_journal;
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);
void sd_journal_close(sd_journal *j);
int sd_journal_previous(sd_journal *j);