diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -5,8 +5,12 @@ #include <string.h> #include <signal.h> #include <errno.h> +#include <fcntl.h> #include <sys/select.h> +#include <sys/types.h> +#include <sys/stat.h> #include <sys/ioctl.h> +#include <sys/mman.h> #include "vis.h" #include "util.h" @@ -102,6 +106,12 @@ typedef struct { Arg arg; } Action; +typedef struct { + const char *name; + bool (*cmd)(const char *argv[]); + regex_t regex; +} Command; + static Key getkey(void); static void cursor(const Arg *arg); static void call(const Arg *arg); |
