aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-06 21:47:35 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-18 16:50:39 +0100
commitd55bdfe229e8e1fcda4a15dd977f0abce7a40ccc (patch)
tree5b8dba1403719a0b9c71c191df92f56214d2b9cc /vis.h
parent0869289348bdd8206d0128b720507ffb857459a5 (diff)
downloadvis-d55bdfe229e8e1fcda4a15dd977f0abce7a40ccc.tar.gz
vis-d55bdfe229e8e1fcda4a15dd977f0abce7a40ccc.tar.xz
vis: add possibility to bind keys to lua functions
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 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 */