summaryrefslogtreecommitdiff
path: root/src/journal/sd-journal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-12-17 00:56:34 +0100
committerLennart Poettering <lennart@poettering.net>2011-12-17 00:56:34 +0100
commit7f3e62571a63ac90de6ac5eefeeb8d3e9aa6f49e (patch)
treecf79b929ef42916d07227b76504fc5990bfe93e6 /src/journal/sd-journal.h
parent1e2579fdeb7608719cb28da0b5061f48ba0efc34 (diff)
journal: add native protocol to journald, and client side API to send journal messages
Diffstat (limited to 'src/journal/sd-journal.h')
-rw-r--r--src/journal/sd-journal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/journal/sd-journal.h b/src/journal/sd-journal.h
index 8d7e314223..e42293ffe7 100644
--- a/src/journal/sd-journal.h
+++ b/src/journal/sd-journal.h
@@ -24,6 +24,8 @@
#include <inttypes.h>
#include <sys/types.h>
+#include <stdarg.h>
+#include <sys/uio.h>
#include "sd-id128.h"
@@ -43,6 +45,16 @@
* - comm, argv can be manipulated, should it be _COMM=, _CMDLINE= or COMM=, CMDLINE=?
*/
+/* Write to daemon */
+
+int sd_journal_print(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
+int sd_journal_printv(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);
+
+/* Browse journal stream */
+
typedef struct sd_journal sd_journal;
int sd_journal_open(sd_journal **ret);