X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..8ab2aa9fd51a89e06d92a4f7c3792aaa4a08cc71:/lib/eventlog.c
diff --git a/lib/eventlog.c b/lib/eventlog.c
index 9297906..9ca2292 100644
--- a/lib/eventlog.c
+++ b/lib/eventlog.c
@@ -15,7 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-
+/** @file lib/eventlog.c
+ * @brief Event logging
+ */
#include "common.h"
#include
@@ -26,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) {
@@ -42,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;