X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/598b07b7de7559ddcaed4063912f68bf951d6701..73df7db645fa36e1e6d732ec34b7020bc316248e:/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 */