X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Feventl.h;h=7fad3d3671734d14642e43232328af9d75a50694;hb=24ad8ea356d71c764af19897e2719670a94a3a05;hp=b320078204c8f2d5149aba99ea65fed7a4f0a159;hpb=41dab7336a84e1960c7565ff9c8bb457296d22dd;p=pazpar2-moved-to-github.git diff --git a/src/eventl.h b/src/eventl.h index b320078..7fad3d3 100644 --- a/src/eventl.h +++ b/src/eventl.h @@ -47,15 +47,16 @@ typedef struct iochan iochan_man_t man; char *name; struct iochan *next; + int poll_offset; } *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); 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)