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, NULL, NULL);
17 static gpointer setup_func(xmlNodePtr node)
22 o = g_new0(Options, 1);
24 if ((n = obt_parse_find_node(node, "string")))
25 o->str = obt_parse_node_string(n);
29 static void free_func(gpointer options)
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);