chiark / gitweb /
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/disorder
[disorder] / lib / eventlog.h
index e29fcfc7db300c13fb9d4c1c46f4a3c0b55dd1b9..64154d11270b1e1aeaf747fcd965dcfb9fc95592 100644 (file)
@@ -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 */