summaryrefslogtreecommitdiff
path: root/src/journal/sd-journal.h
diff options
context:
space:
mode:
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);