summaryrefslogtreecommitdiff
path: root/src/actions.h
diff options
context:
space:
mode:
authorsabetts <sabetts>2005-02-10 23:22:40 +0000
committersabetts <sabetts>2005-02-10 23:22:40 +0000
commit3d57925ea2acf5f202a89982a70c692eb36572f4 (patch)
tree01c73f59bddf7269cf8933948404683a9ff2c37c /src/actions.h
parent3fac62ca1f2d01907cbfca54f881c3218a1eca41 (diff)
downloadratpoison-3d57925ea2acf5f202a89982a70c692eb36572f4.zip
(parse_keydesc): return a cmdret error in the
event of an error and take a point to an rp_key as an argument. Fill this argument with the parsed key. (parse_keydesc): Don't accept the keysym if it doesn't map to a keycode. (cmdret_new): renamed from cmdret_new_printf. All callers updated. (cmdret_new_printf): remove function. (arg_free): free the key member.
Diffstat (limited to 'src/actions.h')
-rw-r--r--src/actions.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/actions.h b/src/actions.h
index 766cd01..9cce6ba 100644
--- a/src/actions.h
+++ b/src/actions.h
@@ -30,10 +30,20 @@
typedef struct user_command user_command;
/* arg_REST and arg_SHELLCMD eat the rest of the input. */
-enum argtype { arg_REST, arg_NUMBER, arg_STRING, arg_FRAME,
- arg_WINDOW, arg_COMMAND, arg_SHELLCMD,
- arg_KEYMAP, arg_KEY, arg_GRAVITY, arg_GROUP,
- arg_HOOK, arg_VARIABLE, arg_RAW};
+enum argtype { arg_REST,
+ arg_NUMBER,
+ arg_STRING,
+ arg_FRAME,
+ arg_WINDOW,
+ arg_COMMAND,
+ arg_SHELLCMD,
+ arg_KEYMAP,
+ arg_KEY,
+ arg_GRAVITY,
+ arg_GROUP,
+ arg_HOOK,
+ arg_VARIABLE,
+ arg_RAW};
union arg_union {
rp_frame *frame;