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: flush /run to /var as soon as it becomes available
[elogind.git]
/
src
/
journal
/
sd-journal.h
diff --git
a/src/journal/sd-journal.h
b/src/journal/sd-journal.h
index b29680b3a20b550dd45f2f0984148e80253f067b..f6b1c955fb04958065e50abf843532fb1f041446 100644
(file)
--- a/
src/journal/sd-journal.h
+++ b/
src/journal/sd-journal.h
@@
-31,14
+31,20
@@
/* TODO:
*
/* 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.
* - extend hash tables table as we go
* - accelerate looking for "all hostnames" and suchlike.
- * - throttling
+ * - hookup with systemctl
+ * - handle incomplete header
+ *
+ * - local deserializer
+ * - http server
+ * - message catalog
+ *
+ * - check LE/BE conversion for 8bit, 16bit, 32bit values
* - cryptographic hash
* - cryptographic hash
- * - never access beyond fle size check
+ * - think about manipulations of header
+ * - implement audit gateway
*/
/* Write to daemon */
*/
/* Write to daemon */
@@
-49,11
+55,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_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;
/* 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);
void sd_journal_close(sd_journal *j);
int sd_journal_previous(sd_journal *j);