X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fjournal%2Fsd-journal.h;h=e42293ffe74543a684570e900446d710a8b6b7d4;hp=8d7e314223c1ce008b2fc23224fc1a16c95c79e9;hb=7f3e62571a63ac90de6ac5eefeeb8d3e9aa6f49e;hpb=1e2579fdeb7608719cb28da0b5061f48ba0efc34 diff --git a/src/journal/sd-journal.h b/src/journal/sd-journal.h index 8d7e31422..e42293ffe 100644 --- a/src/journal/sd-journal.h +++ b/src/journal/sd-journal.h @@ -24,6 +24,8 @@ #include #include +#include +#include #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);