X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/6961095b797229842e1465ff3670625d11e95167..8ab2aa9fd51a89e06d92a4f7c3792aaa4a08cc71:/lib/eventlog.h diff --git a/lib/eventlog.h b/lib/eventlog.h index e29fcfc..64154d1 100644 --- a/lib/eventlog.h +++ b/lib/eventlog.h @@ -41,25 +41,26 @@ struct eventlog_output { /** @brief Add an event log output * @param lo Pointer to output to add */ -void eventlog_add(struct eventlog_output *lo); +void eventlog_add(struct eventlog_output *lo) attribute((nonnull(1))); /** @brief Remove an event log output * @param lo Pointer to output to remove */ -void eventlog_remove(struct eventlog_output *lo); +void eventlog_remove(struct eventlog_output *lo) attribute((nonnull(1))); /** @brief Send a message to the event log * @param keyword Distinguishing keyword for event * @param ... Extra data, terminated by (char *)0 */ -void eventlog(const char *keyword, ...); +void eventlog(const char *keyword, ...) attribute((nonnull(1))); /** @brief Send a message to the event log * @param keyword Distinguishing keyword for event * @param raw Unformatted data * @param ... Extra data, terminated by (char *)0 */ -void eventlog_raw(const char *keyword, const char *raw, ...); +void eventlog_raw(const char *keyword, const char *raw, ...) + attribute((nonnull(1, 2))); #endif /* EVENTLOG_H */