From d55bdfe229e8e1fcda4a15dd977f0abce7a40ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 6 Feb 2016 21:47:35 +0100 Subject: vis: add possibility to bind keys to lua functions --- vis.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index dc087f9..560e4d9 100644 --- a/vis.h +++ b/vis.h @@ -26,6 +26,7 @@ typedef union { /* various types of arguments passed to key action functions */ bool b; int i; const char *s; + const void *v; void (*w)(View*); void (*f)(Vis*); } Arg; @@ -39,7 +40,7 @@ typedef struct { /* a KeyAction can be bound to a key binding */ * to complete the action. In this case the function will be called again when more input * becomes available */ const char* (*func)(Vis*, const char *keys, const Arg*); - const Arg arg; /* additional arguments which will be passed as to func */ + Arg arg; /* additional arguments which will be passed as to func */ } KeyAction; typedef struct { /* a key binding either refers to an action or an alias */ -- cgit v1.2.3