X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/132a5a4a47f9dbc7c52ee15234d70258c59ccf8e..6961095b797229842e1465ff3670625d11e95167:/lib/eventlog.c diff --git a/lib/eventlog.c b/lib/eventlog.c index a56884b..9ca2292 100644 --- a/lib/eventlog.c +++ b/lib/eventlog.c @@ -28,6 +28,7 @@ #include "eventlog.h" #include "split.h" +/** @brief Linked list of event logs */ static struct eventlog_output *outputs; void eventlog_add(struct eventlog_output *lo) { @@ -44,6 +45,11 @@ void eventlog_remove(struct eventlog_output *lo) { *pp = lo->next; } +/** @brief Write to the event log + * @param keyword Distinguishing keyword for event + * @param raw Unformatted data + * @param ap Extra data, terminated by (char *)0 + */ static void veventlog(const char *keyword, const char *raw, va_list ap) { struct eventlog_output *p, *pnext; struct dynstr d;