chiark / gitweb /
journald: forward all syslog messages to syslogd
[elogind.git] / src / journal / sd-journal.h
index ee9813f28c346a6720fed95384a841b3f93635dc..97f9f0fa13e4177e4ee086ee9e1157257c3bc14a 100644 (file)
 
 /* TODO:
  *
- *   - check LE/BE conversion for 8bit, 16bit, 32bit values
- *   - implement audit gateway
- *   - implement stdout gateway
+ *   - OR of matches is borked...
  *   - extend hash tables table as we go
  *   - accelerate looking for "all hostnames" and suchlike.
- *   - throttling
+ *   - hookup with systemctl
+ *   - handle incomplete header
+ *   - write unit files
+ *
+ *   - local deserializer
+ *   - http server
+ *   - message catalog
+ *
+ *   - check LE/BE conversion for 8bit, 16bit, 32bit values
  *   - cryptographic hash
- *   - compression
+ *   - think about manipulations of header
+ *   - implement audit gateway
  */
 
 /* Write to daemon */
@@ -49,11 +56,19 @@ int sd_journal_printv(int priority, const char *format, va_list ap);
 int sd_journal_send(const char *format, ...) __attribute__((sentinel));
 int sd_journal_sendv(const struct iovec *iov, int n);
 
+int sd_journal_stream_fd(const char *tag, int priority, int priority_prefix);
+
 /* Browse journal stream */
 
 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);