diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-02-11 10:25:22 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-02-11 11:01:18 -0500 |
| commit | 2202f11f239bb33e49c05aa73b51e7418748cb6b (patch) | |
| tree | a9cf7fa0fe3b12b7b39978e247a965dbd04fe493 /openbox/actions.h | |
| parent | c168faee634d3c3f9494b2a4da89b80d10f311ce (diff) | |
add an optional shutdown function which actions can register
Diffstat (limited to 'openbox/actions.h')
| -rw-r--r-- | openbox/actions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/actions.h b/openbox/actions.h index afcc96b7..a56ece39 100644 --- a/openbox/actions.h +++ b/openbox/actions.h @@ -35,6 +35,7 @@ typedef void (*ObActionsDataFreeFunc)(gpointer options); typedef gboolean (*ObActionsRunFunc)(ObActionsData *data, gpointer options); typedef gpointer (*ObActionsDataSetupFunc)(xmlNodePtr node); +typedef void (*ObActionsShutdownFunc)(void); /* functions for interactive actions */ /* return TRUE if the action is going to be interactive, or false to change @@ -77,6 +78,9 @@ gboolean actions_register(const gchar *name, ObActionsDataFreeFunc free, ObActionsRunFunc run); +gboolean actions_set_shutdown(const gchar *name, + ObActionsShutdownFunc shutdown); + ObActionsAct* actions_parse(xmlNodePtr node); ObActionsAct* actions_parse_string(const gchar *name); |
