diff options
author | Alexander Wirt <formorer@debian.org> | 2012-06-03 08:49:55 +0200 |
---|---|---|
committer | Alexander Wirt <formorer@debian.org> | 2012-06-03 08:49:55 +0200 |
commit | ea27bb406e3d8fe9466ba274af38e6f540ff5bfc (patch) | |
tree | 9f0c78416f8b617d6af715800ce22815645ee8ec /include/fds.h | |
parent | ed902b39d4f4aa2fc8130441d25b849a69b75c15 (diff) | |
download | conntrack-tools-ea27bb406e3d8fe9466ba274af38e6f540ff5bfc.tar.gz conntrack-tools-ea27bb406e3d8fe9466ba274af38e6f540ff5bfc.zip |
Imported Upstream version 1.2.1
Diffstat (limited to 'include/fds.h')
-rw-r--r-- | include/fds.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/fds.h b/include/fds.h new file mode 100644 index 0000000..f3728d7 --- /dev/null +++ b/include/fds.h @@ -0,0 +1,22 @@ +#ifndef _FDS_H_ +#define _FDS_H_ + +#include "linux_list.h" + +struct fds { + int maxfd; + fd_set readfds; + struct list_head list; +}; + +struct fds_item { + struct list_head head; + int fd; +}; + +struct fds *create_fds(void); +void destroy_fds(struct fds *); +int register_fd(int fd, struct fds *fds); +int unregister_fd(int fd, struct fds *fds); + +#endif |