diff options
author | Dimitri Staessens <[email protected]> | 2023-03-14 12:50:27 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2023-03-18 17:12:27 +0100 |
commit | 99b4f4d6d6f18321489bae50f1762b29165f7de1 (patch) | |
tree | 980ce47c1e7e84b91403ecc8f8263c8d05dfc1c3 /src/irmd/ipcp.h | |
parent | 3b2f38aeafa1d6d2976dd5581ef46a5d3b463825 (diff) | |
download | ouroboros-99b4f4d6d6f18321489bae50f1762b29165f7de1.tar.gz ouroboros-99b4f4d6d6f18321489bae50f1762b29165f7de1.zip |
irmd: Use buffer_t for piggybacked data
Instead of passing a const void * and len, it now passes buffer_t to
operations that send piggybacked data (flow_req_arr and flow_reply)
and a buffer_t * for operations that send and receive piggybacked data
(flow_alloc and flow_accept).
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/irmd/ipcp.h')
-rw-r--r-- | src/irmd/ipcp.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/irmd/ipcp.h b/src/irmd/ipcp.h index ad96ad1c..bedbfe01 100644 --- a/src/irmd/ipcp.h +++ b/src/irmd/ipcp.h @@ -69,8 +69,7 @@ int ipcp_flow_alloc(pid_t pid, const uint8_t * dst, size_t len, qosspec_t qs, - const void * data, - size_t dlen); + const buffer_t data); int ipcp_flow_join(pid_t pid, int flow_id, @@ -79,12 +78,11 @@ int ipcp_flow_join(pid_t pid, size_t len, qosspec_t qs); -int ipcp_flow_alloc_resp(pid_t pid, - int flow_id, - pid_t n_pid, - int response, - const void * data, - size_t len); +int ipcp_flow_alloc_resp(pid_t pid, + int flow_id, + pid_t n_pid, + int response, + const buffer_t data); int ipcp_flow_dealloc(pid_t pid, int flow_id, |