summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-11 11:05:25 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-11 11:05:25 +0200
commit99356adf207e0fe81a34ee1acfd8cacc3d2860c7 (patch)
tree01a41af8da574eb9b94d49179687246eb83a60a6 /include
parentdbf3ab8dfb2cbe8167c464e3cf6a9aa757bfff6a (diff)
parentfd086b87023da5a5ba4e42da2327fa39a6725cd2 (diff)
downloadouroboros-99356adf207e0fe81a34ee1acfd8cacc3d2860c7.tar.gz
ouroboros-99356adf207e0fe81a34ee1acfd8cacc3d2860c7.zip
Merged in dstaesse/ouroboros/be-flowsett (pull request #259)
lib: Add a type for struct flow_set
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/select.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/include/ouroboros/select.h b/include/ouroboros/select.h
index 9e0b8fec..de309b8d 100644
--- a/include/ouroboros/select.h
+++ b/include/ouroboros/select.h
@@ -29,22 +29,24 @@
struct flow_set;
-struct flow_set * flow_set_create();
+typedef struct flow_set flow_set_t;
-void flow_set_destroy(struct flow_set * set);
+flow_set_t * flow_set_create();
-void flow_set_zero(struct flow_set * set);
+void flow_set_destroy(flow_set_t * set);
-void flow_set_add(struct flow_set * set,
- int fd);
+void flow_set_zero(flow_set_t * set);
-void flow_set_del(struct flow_set * set,
- int fd);
+void flow_set_add(flow_set_t * set,
+ int fd);
-bool flow_set_has(struct flow_set * set,
- int fd);
+void flow_set_del(flow_set_t * set,
+ int fd);
-int flow_select(struct flow_set * set,
- const struct timespec * timeout);
+bool flow_set_has(flow_set_t * set,
+ int fd);
+
+int flow_select(flow_set_t * set,
+ const struct timespec * timeout);
#endif /* OUROBOROS_SELECT_H */