]> icculus.org git repositories - mikachu/openbox.git/blob - c/hooks.h
merge the C branch into HEAD
[mikachu/openbox.git] / c / hooks.h
1 #ifndef __hooks_h
2 #define __hooks_h
3
4 #include "eventdata.h"
5
6 void hooks_startup();
7 void hooks_shutdown();
8
9 void hooks_fire(EventData *data);
10
11 void hooks_fire_keyboard(EventData *data);
12
13 void hooks_fire_pointer(EventData *data);
14
15 #define LOGICALHOOK(type, context, client) \
16 { EventData *data = eventdata_new_logical(Logical_##type, \
17                                           context, client); \
18   g_assert(data != NULL); \
19   hooks_fire(data); \
20   eventdata_free(data); \
21 }
22
23 #endif