blob: 57ccc1b46bd5d439b543f68f272492620828c8c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef _LINPICKER_FD_H_
#define _LINPICKER_FD_H_
#include "config.h"
typedef void (*fd_handler)(void *closure);
#define FD_LOG(lvl, msg...) \
do { \
if (lvl <= LOGLEVEL) \
fd_log(msg); \
} while (0)
void
fd_vlog(const char *fmt, va_list args);
void
fd_log(const char *fmt, ...);
int
fd_open_logfile(const char *path);
int
fd_set_handler(int fd, fd_handler callback, void *closure);
int
fd_run_select(void);
void
fd_shutdown(void);
#endif /* _LINPICKER_FD_H_ */
|