blob: 4558555118cb2bb272c6ee16ac800adecfd85bd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef ULOGD_SELECT_H
#define ULOGD_SELECT_H
#include <ulogd/linuxlist.h>
#define ULOGD_FD_F_READ 0x0001
#define ULOGD_FD_F_WRITE 0x0002
struct ulogd_fd {
struct list_head list;
int fd;
unsigned int flags;
void *data;
int (*cb)(int fd, int flags, void *data);
};
int ulogd_register_fd(struct ulogd_fd *fd);
int ulogd_unregister_fd(struct ulogd_fd *fd);
int ulogd_select_main();
#endif
|