diff options
author | dimitri staessens <[email protected]> | 2017-08-29 14:30:35 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-08-29 14:52:29 +0200 |
commit | f6b898da88e06399aedbfec87296602aef5c09c2 (patch) | |
tree | f6e8f9e732cc36f4f153e409b3f92cdd7c19dbae /include | |
parent | 00aeb6ee00efa98c7e2d6d9bebeb1c4799ba1705 (diff) | |
download | ouroboros-f6b898da88e06399aedbfec87296602aef5c09c2.tar.gz ouroboros-f6b898da88e06399aedbfec87296602aef5c09c2.zip |
dev: Revise fqueue API and add man pages
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/fqueue.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/include/ouroboros/fqueue.h b/include/ouroboros/fqueue.h index 716d0216..48b5266e 100644 --- a/include/ouroboros/fqueue.h +++ b/include/ouroboros/fqueue.h @@ -32,35 +32,35 @@ struct flow_set; struct fqueue; -typedef struct flow_set flow_set_t; +typedef struct flow_set fset_t; typedef struct fqueue fqueue_t; __BEGIN_DECLS -flow_set_t * flow_set_create(void); +fset_t * fset_create(void); -void flow_set_destroy(flow_set_t * set); +void fset_destroy(fset_t * set); -fqueue_t * fqueue_create(void); +fqueue_t * fqueue_create(void); -void fqueue_destroy(struct fqueue * fq); +void fqueue_destroy(struct fqueue * fq); -void flow_set_zero(flow_set_t * set); +void fset_zero(fset_t * set); -int flow_set_add(flow_set_t * set, - int fd); +int fset_add(fset_t * set, + int fd); -bool flow_set_has(const flow_set_t * set, - int fd); +bool fset_has(const fset_t * set, + int fd); -void flow_set_del(flow_set_t * set, - int fd); +void fset_del(fset_t * set, + int fd); -int fqueue_next(fqueue_t * fq); +int fqueue_next(fqueue_t * fq); -int flow_event_wait(flow_set_t * set, - fqueue_t * fq, - const struct timespec * timeout); +int fevent(fset_t * set, + fqueue_t * fq, + const struct timespec * timeo); __END_DECLS |