X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.h;h=6aade180b871ca185be36b0c5376b3cfd3156910;hb=7a48ef1f5453d8fa2e56a0d76fc86d559d586c40;hp=03174146e831f8d0686eabc4ed93acf926fdc8d5;hpb=080b36cfc21916534c375e478cd36e5623512d82;p=chaz%2Fopenbox diff --git a/openbox/event.h b/openbox/event.h index 03174146..6aade180 100644 --- a/openbox/event.h +++ b/openbox/event.h @@ -1,17 +1,28 @@ #ifndef __events_h #define __events_h +#include + /*! Time at which the last event with a timestamp occured. */ extern Time event_lasttime; /*! The value of the mask for the NumLock modifier */ -extern unsigned int NumLockMask; +extern guint NumLockMask; /*! The value of the mask for the ScrollLock modifier */ -extern unsigned int ScrollLockMask; +extern guint ScrollLockMask; void event_startup(); void event_shutdown(); +typedef struct event_fd_handler { + gint fd; + gpointer data; + void (*handler)(gint fd, gpointer data); +} event_fd_handler; + +void event_add_fd_handler(event_fd_handler *handler); +void event_remove_fd(gint n); + void event_loop(); #endif