summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2022-03-29 20:43:20 +0200
committerSander Vrijders <sander@ouroboros.rocks>2022-03-30 15:12:25 +0200
commit8a1f7dc159cc7a85e92975e1b25fdce1368e8c8e (patch)
tree37f51528030dfe81d9568006c33ae3af65d49305 /include
parente38f7c74dc0383fc5daf3eea7a7ab63fae6379fa (diff)
downloadouroboros-8a1f7dc159cc7a85e92975e1b25fdce1368e8c8e.tar.gz
ouroboros-8a1f7dc159cc7a85e92975e1b25fdce1368e8c8e.zip
lib: Use struct portevent internally
The fqueues were relying on the fact that the portevent were two integers. This cleans that up a bit. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/shm_flow_set.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/ouroboros/shm_flow_set.h b/include/ouroboros/shm_flow_set.h
index ba085aef..62bf24e9 100644
--- a/include/ouroboros/shm_flow_set.h
+++ b/include/ouroboros/shm_flow_set.h
@@ -27,6 +27,11 @@
#include <sys/time.h>
+struct portevent {
+ int flow_id;
+ int event;
+};
+
struct shm_flow_set;
struct shm_flow_set * shm_flow_set_create(pid_t pid);
@@ -58,7 +63,7 @@ void shm_flow_set_notify(struct shm_flow_set * set,
ssize_t shm_flow_set_wait(const struct shm_flow_set * shm_set,
size_t idx,
- int * fqueue,
+ struct portevent * fqueue,
const struct timespec * abstime);
#endif /* OUROBOROS_SHM_FLOW_SET_H */