X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=eventl.h;h=9e1081700d0f14e19b65f71868b2bd426cbbe182;hb=eca54f46680e3da32c28be81f127be97049b6edb;hp=967d5dca785b3a6ad6839453c25c57fa9c329c7a;hpb=284686d53e59c7991165de467a83bc6ad755247b;p=pazpar2-moved-to-github.git diff --git a/eventl.h b/eventl.h index 967d5dc..9e10817 100644 --- a/eventl.h +++ b/eventl.h @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: eventl.h,v $ - * Revision 1.2 2006-11-18 05:00:38 quinn + * Revision 1.3 2006-12-12 02:36:24 quinn + * Implemented session timeout; ping command + * + * Revision 1.2 2006/11/18 05:00:38 quinn * Added record retrieval, etc. * * Revision 1.1.1.1 2006/11/14 20:44:38 quinn @@ -93,6 +96,7 @@ typedef struct iochan #define iochan_setevent(i, e) ((i)->force_event = (e)) #define iochan_getnext(i) ((i)->next) #define iochan_settimeout(i, t) ((i)->max_idle = (t), (i)->last_event = time(0)) +#define iochan_activity(i) ((i)->last_event = time(0)) IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags); int event_loop(IOCHAN *iochans);