X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/132a5a4a47f9dbc7c52ee15234d70258c59ccf8e..598b07b7de7559ddcaed4063912f68bf951d6701:/lib/eventdist.c?ds=inline 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; };