summaryrefslogtreecommitdiff
path: root/lib/event.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-10-29 12:08:49 +0000
committerMartin Mares <mj@ucw.cz>1999-10-29 12:08:49 +0000
commit0d70292d88276a9883ab8bc15b00e6a2e2fe4487 (patch)
tree19985b61964aacd88b239cefbea547cca85eccb9 /lib/event.h
parent92af6f309b9283482384bd9bbd0351cd71e3cf1d (diff)
Events now return a value. If it's non-zero, the event is re-queued
for processing in next event cycle. This can be used to prevent background actions (hint: user commands) from hogging the CPU for too long time.
Diffstat (limited to 'lib/event.h')
-rw-r--r--lib/event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/event.h b/lib/event.h
index 0b1ea842..0856fbb0 100644
--- a/lib/event.h
+++ b/lib/event.h
@@ -13,7 +13,7 @@
typedef struct event {
resource r;
- void (*hook)(void *);
+ int (*hook)(void *);
void *data;
node n; /* Internal link */
} event;