]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions.h
add an optional shutdown function which actions can register
[chaz/openbox] / openbox / actions.h
index afcc96b7ed58826631520d752b31125a2937ad7a..a56ece398e8e7ba5937604975aec3c2397fb4989 100644 (file)
@@ -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);
 
This page took 0.020683 seconds and 4 git commands to generate.