aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vis.h b/vis.h
index 80a37aa..2b5ce52 100644
--- a/vis.h
+++ b/vis.h
@@ -67,7 +67,8 @@ typedef union {
* @endrst
* @ingroup vis_action
*/
-typedef const char *KeyActionFunction(Vis *vis, const char *keys, const Arg *arg);
+#define KEY_ACTION_FN(name) const char *name(Vis *vis, const char *keys, const Arg *arg)
+typedef KEY_ACTION_FN(KeyActionFunction);
/** Key action definition. */
typedef struct {