X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/132a5a4a47f9dbc7c52ee15234d70258c59ccf8e..6735af5fd1a4ae3978c0c31ac6026f15742c0a90:/lib/eventdist.c diff --git a/lib/eventdist.c b/lib/eventdist.c index 37893b6..e0fb0fa 100644 --- a/lib/eventdist.c +++ b/lib/eventdist.c @@ -24,10 +24,22 @@ #include "eventdist.h" #include "hash.h" +/** @brief Event data + * + * @c event_data structures form linked lists; one list per event and one node + * per handler. + */ struct event_data { + /** @brief Next handler */ struct event_data *next; + + /** @brief Name of event */ const char *event; + + /** @brief Handler callback */ event_handler *callback; + + /** @brief Passed to @ref callback */ void *callbackdata; };