From f8a47de5ec444c452093371e3db16857eb39a490 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 16 Mar 2003 21:11:39 +0000 Subject: merge the C branch into HEAD --- c/hooks.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 c/hooks.h (limited to 'c/hooks.h') diff --git a/c/hooks.h b/c/hooks.h new file mode 100644 index 00000000..477c8124 --- /dev/null +++ b/c/hooks.h @@ -0,0 +1,23 @@ +#ifndef __hooks_h +#define __hooks_h + +#include "eventdata.h" + +void hooks_startup(); +void hooks_shutdown(); + +void hooks_fire(EventData *data); + +void hooks_fire_keyboard(EventData *data); + +void hooks_fire_pointer(EventData *data); + +#define LOGICALHOOK(type, context, client) \ +{ EventData *data = eventdata_new_logical(Logical_##type, \ + context, client); \ + g_assert(data != NULL); \ + hooks_fire(data); \ + eventdata_free(data); \ +} + +#endif -- cgit v1.2.3