X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.h;h=b8f567a8d9c41978636d10cf2969db1957ba6029;hb=78a8680cd7379cc0d75af810dabe62c7a6c4a8b2;hp=9153116ed8bac39f7f4ee713397b33a5096314e2;hpb=f8a47de5ec444c452093371e3db16857eb39a490;p=chaz%2Fopenbox diff --git a/openbox/event.h b/openbox/event.h index 9153116e..b8f567a8 100644 --- a/openbox/event.h +++ b/openbox/event.h @@ -1,12 +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; +/*! The value of the mask for the ScrollLock modifier */ +extern unsigned int ScrollLockMask; + void event_startup(); void event_shutdown(); +typedef struct event_fd_handler { + int fd; + void *data; + void (*handler)(int fd, void *data); +} event_fd_handler; + +void event_add_fd_handler(event_fd_handler *handler); +void event_remove_fd(int n); + void event_loop(); #endif