1 #include "openbox/actions.h"
8 static gpointer setup_func(xmlNodePtr node);
9 static void free_func(gpointer options);
10 static gboolean run_func(ObActionsData *data, gpointer options);
12 void action_debug_startup(void)
14 actions_register("Debug", setup_func, free_func, run_func);
17 static gpointer setup_func(xmlNodePtr node)
22 o = g_slice_new0(Options);
24 if ((n = obt_xml_find_node(node, "string")))
25 o->str = obt_xml_node_string(n);
29 static void free_func(gpointer options)
33 g_slice_free(Options, o);
36 /* Always return FALSE because its not interactive */
37 static gboolean run_func(ObActionsData *data, gpointer options)
41 if (o->str) g_print("%s\n", o->str);