~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'protogen'
[disorder]
/
lib
/
eventlog.c
diff --git
a/lib/eventlog.c
b/lib/eventlog.c
index
a56884b
..
9ca2292
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;