projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify zurl in last commit
[pazpar2-moved-to-github.git]
/
src
/
eventl.h
diff --git
a/src/eventl.h
b/src/eventl.h
index
92f9a53
..
515b7f2
100644
(file)
--- a/
src/eventl.h
+++ b/
src/eventl.h
@@
-51,12
+51,12
@@
typedef struct iochan
} *IOCHAN;
} *IOCHAN;
-iochan_man_t iochan_man_create(int no_threads);
-void iochan_add(iochan_man_t man, IOCHAN chan);
+iochan_man_t iochan_man_create(int no_threads, int max_sockets);
+int iochan_add(iochan_man_t man, IOCHAN chan, int slack);
void iochan_man_events(iochan_man_t man);
void iochan_man_destroy(iochan_man_t *mp);
void iochan_man_events(iochan_man_t man);
void iochan_man_destroy(iochan_man_t *mp);
+void iochan_destroy(IOCHAN chan);
-#define iochan_destroy(i) (void)((i)->destroyed = 1)
#define iochan_getfd(i) ((i)->fd)
#define iochan_setfd(i, d) ((i)->fd = d)
#define iochan_getdata(i) ((i)->data)
#define iochan_getfd(i) ((i)->fd)
#define iochan_setfd(i, d) ((i)->fd = d)
#define iochan_getdata(i) ((i)->data)