X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fjournald-syslog.h;h=25f89883f4a125a21ae8599a79d15c385063c36b;hb=455971c1493fc6dc3125d235cf4ea6102cac626d;hp=e009ab7e721b4570626826a3e3efa7a60c2aa4ff;hpb=178cc7700c23ac088cd7190d7854282075028d91;p=elogind.git diff --git a/src/journal/journald-syslog.h b/src/journal/journald-syslog.h index e009ab7e7..25f89883f 100644 --- a/src/journal/journald-syslog.h +++ b/src/journal/journald-syslog.h @@ -21,16 +21,16 @@ along with systemd; If not, see . ***/ -#include "journald.h" +#include "journald-server.h" -int syslog_fixup_facility(int priority); +int syslog_fixup_facility(int priority) _const_; -void syslog_parse_priority(char **p, int *priority); -void syslog_parse_identifier(const char **buf, char **identifier, char **pid); +void syslog_parse_priority(const char **p, int *priority, bool with_facility); +size_t syslog_parse_identifier(const char **buf, char **identifier, char **pid); -void server_forward_syslog(Server *s, int priority, const char *identifier, const char *message, struct ucred *ucred, struct timeval *tv); +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, struct ucred *ucred, struct timeval *tv, const char *label, size_t label_len); +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);