blob: 92d6cf98e27f4d7896a5abd09329f54c9fc951c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#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_delete(RunesLoop *loop);
#endif
|