X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Feventl.h;h=515b7f290ff8a505f0dda575d358c300fcecc0ae;hb=37ae4386bd764d62ae43c68df1560be55ff813ca;hp=4acff45622e4f83cbd9661d11bcae43a6dce4d64;hpb=2bd14321370e2d042c370d19149d6caec9c01930;p=pazpar2-moved-to-github.git diff --git a/src/eventl.h b/src/eventl.h index 4acff45..515b7f2 100644 --- a/src/eventl.h +++ b/src/eventl.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2013 Index Data + Copyright (C) Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -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, int slack); 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) @@ -69,8 +70,6 @@ void iochan_man_destroy(iochan_man_t *mp); IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags, const char *name); -void pazpar2_sleep(double d); - #endif /* * Local variables: