projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing bug which caused that the term list was never updated.
[pazpar2-moved-to-github.git]
/
eventl.h
diff --git
a/eventl.h
b/eventl.h
index
b275852
..
9e10817
100644
(file)
--- a/
eventl.h
+++ b/
eventl.h
@@
-4,8
+4,14
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: eventl.h,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: eventl.h,v $
- * Revision 1.1 2006-11-14 20:44:38 quinn
- * Initial revision
+ * 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
+ * PazPar2
*
* Revision 1.1.1.1 2000/02/23 14:40:18 heikki
* Original import to cvs
*
* Revision 1.1.1.1 2000/02/23 14:40:18 heikki
* Original import to cvs
@@
-65,7
+71,7
@@
typedef struct iochan
#define EVENT_EXCEPT 0x04
#define EVENT_TIMEOUT 0x08
#define EVENT_WORK 0x10
#define EVENT_EXCEPT 0x04
#define EVENT_TIMEOUT 0x08
#define EVENT_WORK 0x10
-int force_event;
+ int force_event;
IOC_CALLBACK fun;
void *data;
int destroyed;
IOC_CALLBACK fun;
void *data;
int destroyed;
@@
-90,7
+96,9
@@
int force_event;
#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_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);
IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags);
int event_loop(IOCHAN *iochans);
+
#endif
#endif