void *data;
} poll_t;
+typedef struct {
+ poll_t poll;
+ cb_t timer;
+ void *data;
+} idle_t;
+
/* Debug functions */
void util_init(void);
int poll_run(int timeout);
void poll_quit(void);
+/* Idle functions */
+void idle_add(idle_t *idle);
+void idle_set(idle_t *idle, int first, int next);
+
/* Debug functions */
void debug(char *fmt, ...);
void error(char *fmt, ...);