diff options
author | laforge <laforge> | 2004-07-23 04:08:42 +0000 |
---|---|---|
committer | laforge <laforge> | 2004-07-23 04:08:42 +0000 |
commit | 9774b6c0a87a45030799abdfe8bf85a13f061c4d (patch) | |
tree | d39da970ec78b8cc438becaeb4ac79074bc2a3d4 /include/ulogd/select.h | |
parent | 2dc0dd85c2e851e9b2dacd9dfaa40c70cc61ff95 (diff) |
add core select() routine and (un-)registration functions
Diffstat (limited to 'include/ulogd/select.h')
-rw-r--r-- | include/ulogd/select.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/ulogd/select.h b/include/ulogd/select.h new file mode 100644 index 0000000..9562a6e --- /dev/null +++ b/include/ulogd/select.h @@ -0,0 +1,20 @@ +#ifndef ULOGD_SELECT_H +#define ULOGD_SELECT_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 |