aboutsummaryrefslogtreecommitdiffstats
path: root/shell/es-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/es-event.c')
-rw-r--r--shell/es-event.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/es-event.c b/shell/es-event.c
index 72a05931bd..f48e0c6270 100644
--- a/shell/es-event.c
+++ b/shell/es-event.c
@@ -129,6 +129,16 @@ es_event_target_new_state(ESEvent *eme, int state)
return t;
}
+ESEventTargetShell *
+es_event_target_new_shell(ESEvent *eme, EShell *shell)
+{
+ ESEventTargetShell *t = e_event_target_new(&eme->event, ES_EVENT_TARGET_SHELL, sizeof(*t));
+
+ t->shell = shell;
+
+ return t;
+}
+
ESEventTargetUpgrade *
es_event_target_new_upgrade(ESEvent *eme, int major, int minor, int revision)
{
@@ -155,6 +165,7 @@ static const EEventHookTargetMask emeh_state_masks[] = {
static const EEventHookTargetMap emeh_targets[] = {
{ "state", ES_EVENT_TARGET_STATE, emeh_state_masks },
{ "upgrade", ES_EVENT_TARGET_UPGRADE, NULL },
+ { "shell", ES_EVENT_TARGET_SHELL, NULL },
{ 0 }
};