blob: 72dbcb0b82d0ad4baddf33b547e8dd5c9f783e2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef _RUNES_LOOP_H
#define _RUNES_LOOP_H
#include <event2/event.h>
struct runes_loop {
struct event_base *base;
};
RunesLoop *runes_loop_new(void);
void runes_loop_run(RunesLoop *loop);
void runes_loop_stop(RunesLoop *loop);
void runes_loop_start_work(
RunesLoop *loop, int fd, void *t, int (*cb)(void*));
void *runes_loop_timer_set(
RunesLoop *loop, int timeout, void *t, void (*cb)(void*));
void runes_loop_timer_clear(RunesLoop *loop, void *arg);
void runes_loop_at_idle(RunesLoop *loop, void *t, void (*cb)(void*));
void runes_loop_delete(RunesLoop *loop);
#endif
|