summaryrefslogtreecommitdiff
path: root/include/fds.h
diff options
context:
space:
mode:
authorroot <root@build-vm.(none)>2010-06-14 15:51:25 -0700
committerroot <root@build-vm.(none)>2010-06-14 15:51:25 -0700
commitc4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5 (patch)
tree86ee5befd8195f56dcd91f9fd4e06368bf507a11 /include/fds.h
downloadconntrack-tools-c4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5.tar.gz
conntrack-tools-c4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5.zip
debian conntrack 0.9.14-2
Diffstat (limited to 'include/fds.h')
-rw-r--r--include/fds.h22
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