X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/6961095b797229842e1465ff3670625d11e95167..b59c46fd2f2c5d094ad9d7b72fec772b99356419:/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 */