diff options
author | axel <axel@liljencrantz.se> | 2005-12-12 08:21:01 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-12-12 08:21:01 +1000 |
commit | 1d69e70b7a298178e9f6415ba65d88fdda964e92 (patch) | |
tree | d95c5c9ec7b3a7e051c0b60b8b8abaca2991b251 /event.h | |
parent | 2cac04850b950184ea431c9d9b5d1261236d4ed9 (diff) |
Initial blocking implementation
darcs-hash:20051211222101-ac50b-6e11220bd608187fbb32a0313b5b73dbdc8354fc.gz
Diffstat (limited to 'event.h')
-rw-r--r-- | event.h | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -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 |