chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disobedience/disobedience.h: Declare variables as `extern'.
[disorder]
/
lib
/
eventlog.c
diff --git
a/lib/eventlog.c
b/lib/eventlog.c
index a56884b33d50b3874f3f537eca2b5daedbfb3b5a..9ca22926719870db7d7622fdc7c0de64a1914473 100644
(file)
--- a/
lib/eventlog.c
+++ b/
lib/eventlog.c
@@
-28,6
+28,7
@@
#include "eventlog.h"
#include "split.h"
#include "eventlog.h"
#include "split.h"
+/** @brief Linked list of event logs */
static struct eventlog_output *outputs;
void eventlog_add(struct eventlog_output *lo) {
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;
}
*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;
static void veventlog(const char *keyword, const char *raw, va_list ap) {
struct eventlog_output *p, *pnext;
struct dynstr d;