X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Feventl.h;h=e53776c971295f818a9f950cd9531c10a0d738c0;hb=eae6eee32de3560f84a83ee5cc922a2d3d63cc44;hp=0eb820189f9ca3978f813a4582f54b7ba508e2ff;hpb=8e26c620fe9f4cd52e0dc3bec5964c89e9a1b2b6;p=pazpar2-moved-to-github.git diff --git a/src/eventl.h b/src/eventl.h index 0eb8201..e53776c 100644 --- a/src/eventl.h +++ b/src/eventl.h @@ -28,6 +28,8 @@ typedef void (*IOC_CALLBACK)(struct iochan *i, int event); typedef int (*IOC_SOCKETFUN)(struct iochan *i); typedef int (*IOC_MASKFUN)(struct iochan *i); +typedef struct iochan_man_s *iochan_man_t; + typedef struct iochan { int fd; @@ -44,13 +46,16 @@ typedef struct iochan int destroyed; time_t last_event; time_t max_idle; - + int this_event; + int thread_users; + + iochan_man_t man; + struct iochan *next; } *IOCHAN; -typedef struct iochan_man_s *iochan_man_t; -iochan_man_t iochan_man_create(void); +iochan_man_t iochan_man_create(int no_threads); void iochan_add(iochan_man_t man, IOCHAN chan); void iochan_man_events(iochan_man_t man); void iochan_man_destroy(iochan_man_t *mp); @@ -78,3 +83,12 @@ void iochan_man_destroy(iochan_man_t *mp); IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags); #endif +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +