summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-08-29 13:11:43 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-08-29 13:11:43 +0000
commitda754467efab5194084cd8eeab4a48f89d6b925e (patch)
treef6e8f9e732cc36f4f153e409b3f92cdd7c19dbae /include
parent00aeb6ee00efa98c7e2d6d9bebeb1c4799ba1705 (diff)
parentf6b898da88e06399aedbfec87296602aef5c09c2 (diff)
downloadouroboros-da754467efab5194084cd8eeab4a48f89d6b925e.tar.gz
ouroboros-da754467efab5194084cd8eeab4a48f89d6b925e.zip
Merged in dstaesse/ouroboros/be-fqueue (pull request #574)
dev: Revise fqueue API and add man pages
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/fqueue.h32
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