summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-07 16:05:52 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-07 16:05:52 +0200
commit192ccde3ae37e33eb33421a6877ed4b4a025fbdb (patch)
treed3d0b18c009757cc5ac7081882152c5f9d9e005b /include
parent71f10f5efab37f3df3d909d324cff2e098d21c85 (diff)
downloadouroboros-192ccde3ae37e33eb33421a6877ed4b4a025fbdb.tar.gz
ouroboros-192ccde3ae37e33eb33421a6877ed4b4a025fbdb.zip
lib: Add non-copy reading from fd for IPCPs
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/ipcp-dev.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/ouroboros/ipcp-dev.h b/include/ouroboros/ipcp-dev.h
index 3c2ff264..9343aeaa 100644
--- a/include/ouroboros/ipcp-dev.h
+++ b/include/ouroboros/ipcp-dev.h
@@ -39,12 +39,15 @@ int ipcp_flow_req_arr(pid_t api,
int ipcp_flow_alloc_reply(int fd,
int response);
-/* returns flow descriptor and du buff */
-int ipcp_flow_read(struct shm_du_buff ** sdb);
+int ipcp_flow_read(int fd,
+ struct shm_du_buff ** sdb);
int ipcp_flow_write(int fd,
struct shm_du_buff * sdb);
void ipcp_flow_del(struct shm_du_buff * sdb);
+/* returns flow descriptor and du buff */
+int ipcp_read_shim(struct shm_du_buff ** sdb);
+
#endif /* OUROBOROS_IPCP_DEV_H */