/*! Time at which the last event with a timestamp occured. */
extern Time event_lasttime;
-/*! Time at which the last event with a timestamp occured before we tried to
- unfocus a window. */
-extern Time event_unfocustime;
/*! The value of the mask for the NumLock modifier */
extern unsigned int NumLockMask;
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