|
ELinks 0.19.1
|
#include "elinks.h"#include "main/event.h"#include "util/error.h"#include "util/hash.h"#include "util/memory.h"#include "util/snprintf.h"#include "util/string.h"
Data Structures | |
| struct | event_handler |
| struct | el_event |
Macros | |
| #define | EVENT_GRANULARITY 0x07 |
| #define | realloc_events(ptr, size) |
Functions | |
| static int | invalid_event_id (int id) |
| int | register_event (const char *name) |
| int | get_event_id (const char *name) |
| char * | get_event_name (int id) |
| static void | trigger_event_va (int id, va_list ap_init) |
| void | trigger_event (int id,...) |
| void | trigger_event_name (const char *name,...) |
| static void | move_event_handler (struct el_event *event, int to, int from) |
| int | register_event_hook (int id, event_hook_T callback, int priority, void *data) |
| void | unregister_event_hook (int id, event_hook_T callback) |
| void | register_event_hooks (struct event_hook_info *hooks) |
| void | unregister_event_hooks (struct event_hook_info *hooks) |
| void | init_event (void) |
| void | done_event (void) |
Variables | |
| static struct el_event * | events = NULL |
| static unsigned int | eventssize = 0 |
| static struct hash * | event_hash = NULL |
| #define EVENT_GRANULARITY 0x07 |
| #define realloc_events | ( | ptr, | |
| size ) |
| void done_event | ( | void | ) |
| int get_event_id | ( | const char * | name | ) |
| char * get_event_name | ( | int | id | ) |
| void init_event | ( | void | ) |
|
inlinestatic |
|
inlinestatic |
| int register_event | ( | const char * | name | ) |
| int register_event_hook | ( | int | id, |
| event_hook_T | callback, | ||
| int | priority, | ||
| void * | data ) |
| void register_event_hooks | ( | struct event_hook_info * | hooks | ) |
| void trigger_event | ( | int | id, |
| ... ) |
| void trigger_event_name | ( | const char * | name, |
| ... ) |
|
static |
| void unregister_event_hook | ( | int | id, |
| event_hook_T | callback ) |
| void unregister_event_hooks | ( | struct event_hook_info * | hooks | ) |
|
static |