aboutsummaryrefslogtreecommitdiffhomepage
path: root/event.h
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-08-20 02:42:30 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-08-20 02:42:30 +1000
commitad02bb9b4871bc053e36a01d603a592984ae1364 (patch)
tree10ef5919d19d96de6aca1866f8230e2475eb35cd /event.h
parente464b4270cdfa7b085fc162d0ea6023e22a1f82e (diff)
Add a 'generic' type of event that can be emited from any piece of code or by the user. Use this event layer to perform interactive configuration startup at the correct time.
darcs-hash:20070819164230-75c98-f91b8a73de7bbbb500d80770ddf4d2d46ae592cc.gz
Diffstat (limited to 'event.h')
-rw-r--r--event.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/event.h b/event.h
index cb99c73f..f1339792 100644
--- a/event.h
+++ b/event.h
@@ -27,6 +27,7 @@ enum
EVENT_VARIABLE, /**< An event triggered by a variable update */
EVENT_EXIT, /**< An event triggered by a job or process exit */
EVENT_JOB_ID, /**< An event triggered by a job exit */
+ EVENT_GENERIC, /**< A generic event */
}
;
@@ -67,7 +68,11 @@ typedef struct
Job id for EVENT_JOB_ID type events
*/
int job_id;
-
+ /**
+ The parameter describing this generic event
+ */
+ const wchar_t *param;
+
} param1;
/**
@@ -142,4 +147,10 @@ void event_free( event_t *e );
*/
const wchar_t *event_get_desc( event_t *e );
+/**
+ Fire a generic event with the specified name
+*/
+void event_fire_generic(const wchar_t *name);
+
+
#endif