X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fjournald-syslog.h;h=3774ebdf0562f1d773c880ea84251bc6b9a692df;hb=fc07d5d3a982e59d984d6be54342a18028faf7be;hp=7fb8e429466044fecf90182de7d0bc83b3867c7f;hpb=35e2e347d38cc2f8bd7c38a0d8a5129f5fbb0ab9;p=elogind.git diff --git a/src/journal/journald-syslog.h b/src/journal/journald-syslog.h index 7fb8e4294..3774ebdf0 100644 --- a/src/journal/journald-syslog.h +++ b/src/journal/journald-syslog.h @@ -21,12 +21,15 @@ along with systemd; If not, see . ***/ -#include "journald.h" +#include "journald-server.h" -void syslog_read_identifier(const char **buf, char **identifier, char **pid); -int syslog_fixup_facility(int priority); +int syslog_fixup_facility(int priority) _const_; -void server_forward_syslog(Server *s, int priority, const char *identifier, const char *message, struct ucred *ucred, struct timeval *tv); +size_t syslog_parse_identifier(const char **buf, char **identifier, char **pid); -void server_process_syslog_message(Server *s, const char *buf, struct ucred *ucred, struct timeval *tv, const char *label, size_t label_len); +void server_forward_syslog(Server *s, int priority, const char *identifier, const char *message, const struct ucred *ucred, const struct timeval *tv); + +void server_process_syslog_message(Server *s, const char *buf, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len); int server_open_syslog_socket(Server *s); + +void server_maybe_warn_forward_syslog_missed(Server *s);