1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 actions.h for the Openbox window manager
4 Copyright (c) 2007 Dana Jansens
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 See the COPYING file for a copy of the GNU General Public License.
22 OB_ACTION_INTERACTING,
23 OB_NUM_ACTIONS_INTERACTIVE_STATES
24 } ObActionsInteractiveState;
26 typedef gpointer (*ObActionsDataSetupFunc)();
27 typedef void (*ObActionsDataParseFunc)(gpointer action_data,
29 xmlDocPtr doc, xmlNodePtr node);
30 typedef void (*ObActionsDataFreeFunc)(gpointer action_data);
31 typedef void (*ObActionsRunFunc)(ObActionsAnyData *data);
33 struct _ObActionsDefinition {
37 ObActionsDataSetupFunc setup;
38 ObActionsDataParseFunc parse;
39 ObActionsDataFreeFunc free;
43 struct _ObActionsAnyData {
50 ObActionsInteractiveState interactive;
55 struct _ObActionsGlobalData {
59 struct _ObActionsClientData {
63 ObFrameContext context;
66 struct _ObActionsSelectorData {
72 void actions_startup(gboolean reconfigure);
73 void actions_shutdown(gboolean reconfigure);
75 gboolean actions_register(const gchar *name,
77 ObActionsDataSetupFunc setup,
78 ObActionsDataParseFunc parse,
79 ObActionsDataFreeFunc free,
80 ObActionsRunFunc run);