X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..92db088e5b292c1180a090ed369b9851e933e610:/lib/eventdist.c diff --git a/lib/eventdist.c b/lib/eventdist.c index 66eae88..e0fb0fa 100644 --- a/lib/eventdist.c +++ b/lib/eventdist.c @@ -15,17 +15,31 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - +/** @file lib/eventdist.c + * @brief Event distribution + */ #include "common.h" #include "mem.h" #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; };