#include <sys/wait.h>
#include <error.h>
#include <errno.h>
+#include <stdint.h>
+
+struct event_handler;
+
+typedef int (handle_event_fn_t)(struct event_handler *);
+
+struct event_handler {
+ int fd;
+ uint32_t events;
+ handle_event_fn_t *handle_event;
+ char *name;
+};
+
+int register_event_handler(struct event_handler *handler);
int get_child_count(void);
int get_parent_count(void);