diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-26 11:57:56 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-26 12:01:52 +0200 |
commit | e2c8623e66d66f4b9c8619349d11375a32ac2134 (patch) | |
tree | 4e4d3b4f8da805ca9f0f0733977ff678c064660f /include/ouroboros/ipcp-dev.h | |
parent | ea16fc664673d65c0e3e51591258be4d3b8be406 (diff) | |
download | ouroboros-e2c8623e66d66f4b9c8619349d11375a32ac2134.tar.gz ouroboros-e2c8623e66d66f4b9c8619349d11375a32ac2134.zip |
lib: Add call to reserve blocks in rdrbuff
This adds a call ipcp_sdb_reserve to reserve memory in the rdrbuff
without directly writing to a flow. The ipcp_flow_del function was
renamed to ipcp_sdb_release. The functions operating on sdbs are moved
to their own header.
Diffstat (limited to 'include/ouroboros/ipcp-dev.h')
-rw-r--r-- | include/ouroboros/ipcp-dev.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/ouroboros/ipcp-dev.h b/include/ouroboros/ipcp-dev.h index 571689ca..cdf9f5c1 100644 --- a/include/ouroboros/ipcp-dev.h +++ b/include/ouroboros/ipcp-dev.h @@ -45,9 +45,12 @@ int ipcp_flow_write(int fd, void ipcp_flow_fini(int fd); -void ipcp_flow_del(struct shm_du_buff * sdb); - int ipcp_flow_get_qoscube(int fd, qoscube_t * cube); +int ipcp_sdb_reserve(struct shm_du_buff ** sdb, + size_t len); + +void ipcp_sdb_release(struct shm_du_buff * sdb); + #endif /* OUROBOROS_IPCP_DEV_H */ |