summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-12 11:10:31 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-12 11:10:31 +0200
commit2ba45f5efe0486b88f91ecced451f74cc782e8a4 (patch)
tree8b75a9cc0ea622965a12c6aa5e0d81132c987ca4 /include
parent69ef99bb2dc05337e8189acc42dc9122f4182ead (diff)
parentb1dda618ce8cbb98f72c0b04925227889204e0c9 (diff)
downloadouroboros-2ba45f5efe0486b88f91ecced451f74cc782e8a4.tar.gz
ouroboros-2ba45f5efe0486b88f91ecced451f74cc782e8a4.zip
Merge remote-tracking branch 'upstream/be' into be-connection
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/select.h24
-rw-r--r--include/ouroboros/shm_ap_rbuff.h6
2 files changed, 19 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 */
diff --git a/include/ouroboros/shm_ap_rbuff.h b/include/ouroboros/shm_ap_rbuff.h
index dd82c01c..1e45ef7f 100644
--- a/include/ouroboros/shm_ap_rbuff.h
+++ b/include/ouroboros/shm_ap_rbuff.h
@@ -44,6 +44,12 @@ void shm_ap_rbuff_close(struct shm_ap_rbuff * rb);
void shm_ap_rbuff_destroy(struct shm_ap_rbuff * rb);
+void shm_ap_rbuff_open_port(struct shm_ap_rbuff * rb,
+ int port_id);
+
+void shm_ap_rbuff_close_port(struct shm_ap_rbuff * rb,
+ int port_id);
+
int shm_ap_rbuff_write(struct shm_ap_rbuff * rb,
struct rb_entry * e);