From b8b05e3b1980146ab8acb40cbe77e0271634c688 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sat, 15 Oct 2016 19:30:27 +0200 Subject: lib: Stabilize fast flow deallocation over local IPCP --- include/ouroboros/local-dev.h | 7 +++---- include/ouroboros/shm_ap_rbuff.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/ouroboros/local-dev.h b/include/ouroboros/local-dev.h index b4915672..77ff47e9 100644 --- a/include/ouroboros/local-dev.h +++ b/include/ouroboros/local-dev.h @@ -25,10 +25,9 @@ #ifndef OUROBOROS_LOCAL_DEV_H #define OUROBOROS_LOCAL_DEV_H -/* returns flow descriptor and rb_entry, no access to du_buff */ -int local_flow_read(struct rb_entry * e); +struct rb_entry * local_flow_read(int fd); -int local_flow_write(int fd, - struct rb_entry * e); +int local_flow_write(int fd, + struct rb_entry * e); #endif /* OUROBOROS_LOCAL_DEV_H */ diff --git a/include/ouroboros/shm_ap_rbuff.h b/include/ouroboros/shm_ap_rbuff.h index 1e45ef7f..453e4bf8 100644 --- a/include/ouroboros/shm_ap_rbuff.h +++ b/include/ouroboros/shm_ap_rbuff.h @@ -47,7 +47,7 @@ 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 shm_ap_rbuff_close_port(struct shm_ap_rbuff * rb, int port_id); int shm_ap_rbuff_write(struct shm_ap_rbuff * rb, -- cgit v1.2.3