diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-06 21:47:35 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-18 16:50:39 +0100 |
| commit | d55bdfe229e8e1fcda4a15dd977f0abce7a40ccc (patch) | |
| tree | 5b8dba1403719a0b9c71c191df92f56214d2b9cc /vis.h | |
| parent | 0869289348bdd8206d0128b720507ffb857459a5 (diff) | |
| download | vis-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |
