X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..6961095b797229842e1465ff3670625d11e95167:/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;