Loading...
Searching...
No Matches
callback_list.c File Reference

Adding to and running a callback list. More...

#include "io/callback_list.h"
#include <stddef.h>

Functions

bool callback_list_add (CallbackList *list, CallbackListFn cb)
 Adds a callback to the end of the list. Adding one that is already there does nothing.
void callback_list_remove (CallbackList *list, CallbackListFn cb)
 Takes a callback off the list. The ones after it move up, so the rest keep their order. Removing one that is not there does nothing.
void callback_list_fire (const CallbackList *list)
 Runs every callback in the order it was added.

Detailed Description

Adding to and running a callback list.