X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=server%2Feventl.h;h=95e45a472fc9339bb713fb72f083803eefa39240;hb=6164387805efc64a201204fa81e531a201d77014;hp=55a6ceb46e438a4e94c1a4e4c8b0cf42d0b9171d;hpb=d6a0e5ff2f35326b9cd2e1260c56fd5dabafd3eb;p=yaz-moved-to-github.git diff --git a/server/eventl.h b/server/eventl.h index 55a6ceb..95e45a4 100644 --- a/server/eventl.h +++ b/server/eventl.h @@ -1,39 +1,16 @@ /* - * Copyright (c) 1995, Index Data I/S + * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Log: eventl.h,v $ - * Revision 1.8 1995-06-19 12:39:09 quinn - * Fixed bug in timeout code. Added BER dumper. - * - * Revision 1.7 1995/06/16 10:31:34 quinn - * Added session timeout. - * - * Revision 1.6 1995/05/16 08:51:02 quinn - * License, documentation, and memory fixes - * - * Revision 1.5 1995/05/15 11:56:37 quinn - * Asynchronous facilities. Restructuring of seshigh code. - * - * Revision 1.4 1995/03/27 08:34:23 quinn - * Added dynamic server functionality. - * Released bindings to session.c (is now redundant) - * - * Revision 1.3 1995/03/15 08:37:42 quinn - * Now we're pretty much set for nonblocking I/O. - * - * Revision 1.2 1995/03/14 10:28:00 quinn - * More work on demo server. - * - * Revision 1.1 1995/03/10 18:22:45 quinn - * The rudiments of an asynchronous server. - * + * $Id: eventl.h,v 1.12 2003-02-12 15:06:43 adam Exp $ */ #ifndef EVENTL_H #define EVENTL_H +#include + struct iochan; typedef void (*IOC_CALLBACK)(struct iochan *i, int event); @@ -73,8 +50,7 @@ int force_event; #define iochan_getnext(i) ((i)->next) #define iochan_settimeout(i, t) ((i)->max_idle = (t), (i)->last_event = time(0)) -IOCHAN iochan_getchan(void); IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags); -int event_loop(); - +int event_loop(IOCHAN *iochans); +void statserv_remove (IOCHAN pIOChannel); #endif