aboutsummaryrefslogtreecommitdiffhomepage
path: root/event.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-12-12 08:21:01 +1000
committerGravatar axel <axel@liljencrantz.se>2005-12-12 08:21:01 +1000
commit1d69e70b7a298178e9f6415ba65d88fdda964e92 (patch)
treed95c5c9ec7b3a7e051c0b60b8b8abaca2991b251 /event.h
parent2cac04850b950184ea431c9d9b5d1261236d4ed9 (diff)
Initial blocking implementation
darcs-hash:20051211222101-ac50b-6e11220bd608187fbb32a0313b5b73dbdc8354fc.gz
Diffstat (limited to 'event.h')
-rw-r--r--event.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/event.h b/event.h
index 43d81a8d..742e9df7 100644
--- a/event.h
+++ b/event.h
@@ -43,15 +43,17 @@ typedef struct
union
{
/**
- Signal number for signal-type events.Use EVENT_ANY_SIGNAL to match any signal
+ Signal number for signal-type events.Use EVENT_ANY_SIGNAL
+ to match any signal
*/
int signal;
/**
- Variable name for variable-type events.
+ Variable name for variable-type events.
*/
const wchar_t *variable;
/**
- Process id for process-type events. Use EVENT_ANY_PID to match any pid.
+ Process id for process-type events. Use EVENT_ANY_PID to
+ match any pid.
*/
pid_t pid;
/**
@@ -65,6 +67,13 @@ typedef struct
The name of the event handler function
*/
const wchar_t *function_name;
+
+ /**
+ The argument list. Only used when sending a new event using
+ event_fire. In all other situations, the value of this variable
+ is ignored.
+ */
+ array_list_t arguments;
}
event_t;
@@ -98,7 +107,7 @@ int event_get( event_t *criterion, array_list_t *out );
\param event the specific event whose handlers should fire
\param arguments the argument string to send to the event handler function
*/
-void event_fire( event_t *event, array_list_t *arguments );
+void event_fire( event_t *event );
/**
Initialize the event-handling library