For doing fast lookups of ev_path -> handler. More...
#include "quickio.h"Go to the source code of this file.
Functions | |
| struct event * | evs_query_insert (const gchar *ev_path, const evs_handler_fn handler_fn, const evs_on_fn on_fn, const evs_off_fn off_fn, const gboolean handle_children) |
| Create a new event. More... | |
| struct event * | evs_query (const gchar *ev_path, gchar **ev_extra) |
| Finds an event by its path. More... | |
| void | evs_query_init () |
| Intializes the ptrie for usage. | |
For doing fast lookups of ev_path -> handler.
| struct event* evs_query | ( | const gchar * | ev_path, |
| gchar ** | ev_extra | ||
| ) |
Finds an event by its path.
| ev_path | The event path to find |
| ev_extra | Where to place any extra path segments that were found. For example, if ev_path="/event/path/with/some/extras", and the registered event was "/event/path", this will contains "/with/some/extras". If there are no extra paths, this will point to a string of len==0. |
| struct event* evs_query_insert | ( | const gchar * | ev_path, |
| const evs_handler_fn | handler_fn, | ||
| const evs_on_fn | on_fn, | ||
| const evs_off_fn | off_fn, | ||
| const gboolean | handle_children | ||
| ) |
Create a new event.
| ev_path | The event path |
| handler_fn | The function to be called when an event of this type comes in |
| on_fn | Called when a client attempts to subscribe to the event |
| off_fn | Called when a client unsubscribes from the event |
| handle_children | If the event would like to handle all unhandled children events |
1.8.6