summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-03-03 14:56:14 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-03-03 14:56:14 +0000
commit6fc6701774f59288fe7306fa3e0a51fd460e2e01 (patch)
tree68a2bf098171299d2c30f9537c89b862edb0f996 /include
parentd753cab1897e323b59923e2b0b11f550b087351c (diff)
parenta688b8a38d7eb9f42406eeb611717db737b0d257 (diff)
downloadouroboros-6fc6701774f59288fe7306fa3e0a51fd460e2e01.tar.gz
ouroboros-6fc6701774f59288fe7306fa3e0a51fd460e2e01.zip
Merged in dstaesse/ouroboros/be-cdap (pull request #398)
lib: Manage multiple flows with a single CDAP instance
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/cdap.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/ouroboros/cdap.h b/include/ouroboros/cdap.h
index 19ab39a8..32edb51c 100644
--- a/include/ouroboros/cdap.h
+++ b/include/ouroboros/cdap.h
@@ -46,12 +46,17 @@ struct cdap;
typedef int32_t cdap_key_t;
-/* Assumes flow is blocking */
-struct cdap * cdap_create(int fd);
+struct cdap * cdap_create(void);
int cdap_destroy(struct cdap * instance);
-cdap_key_t cdap_request_send(struct cdap * instance,
+int cdap_add_flow(struct cdap * instance,
+ int fd);
+
+int cdap_del_flow(struct cdap * instance,
+ int fd);
+
+cdap_key_t * cdap_request_send(struct cdap * instance,
enum cdap_opcode code,
const char * name,
const void * data,