aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/select.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/openbsc/select.h')
-rw-r--r--include/openbsc/select.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/openbsc/select.h b/include/openbsc/select.h
new file mode 100644
index 00000000..f98f72c6
--- /dev/null
+++ b/include/openbsc/select.h
@@ -0,0 +1,17 @@
+#ifndef _BSC_SELECT_H
+#define _BSC_SELECT_H
+
+#define BSC_FD_READ 0x0001
+#define BSC_FD_WRITE 0x0002
+#define BSC_FD_EXCEPT 0x0004
+
+struct bsc_fd {
+ struct llist_head list;
+ int fd;
+ unsigned int when;
+ int (*cb)(struct bsc_fd *fd, unsigned int what);
+ void *data;
+ unsigned int priv_nr;
+};
+
+#endif /* _BSC_SELECT_H */