summaryrefslogtreecommitdiff
path: root/openbox/action.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-26 12:53:04 +0000
committerDana Jansens <danakj@orodu.net>2003-03-26 12:53:04 +0000
commit9eeb13ec71687f43d31d66171efedb859a94285e (patch)
tree0fcdc16c2948b035a236768c0077521fdd4af79a /openbox/action.h
parent91ebde9e8842678e0d0704dc7945b2b84aba314f (diff)
create actions from string names
Diffstat (limited to 'openbox/action.h')
-rw-r--r--openbox/action.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbox/action.h b/openbox/action.h
index 52080251..e3d891f0 100644
--- a/openbox/action.h
+++ b/openbox/action.h
@@ -85,6 +85,15 @@ typedef struct {
} Action;
Action *action_new(void (*func)(union ActionData *data));
+
+/* Creates a new Action from the name of the action
+ A few action types need data set after making this call still. Check if
+ the returned action's "func" is one of these.
+ action_execute - the path needs to be set
+ action_restart - the path can optionally be set
+ action_desktop - the destination desktop needs to be set
+*/
+Action *action_from_string(char *name);
void action_free(Action *a);
/* Execute */