aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-12 15:57:26 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-12 16:15:39 +0100
commitf29228bbdcffdc8810ff8c766a05c6ca63a42086 (patch)
tree7df2502e0314858fd01017333a2eed4a626aa94e /vis.h
parentb4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe (diff)
downloadvis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.gz
vis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.xz
Mark some tables as const
This allows them to be placed into the read only ELF section.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis.h b/vis.h
index 519d327..6652f72 100644
--- a/vis.h
+++ b/vis.h
@@ -44,7 +44,7 @@ typedef struct { /* a KeyAction can be bound to a key binding */
typedef struct { /* a key binding either refers to an action or an alias */
const char *key; /* symbolic key to trigger this binding */
- KeyAction *action; /* action to launch upon triggering this binding */
+ const KeyAction *action; /* action to launch upon triggering this binding */
const char *alias; /* replaces key with alias in the input queue */
} KeyBinding;
@@ -137,7 +137,7 @@ bool vis_window_mode_unmap(Win*, enum VisMode, const char *key);
const char *vis_mode_status(Vis*);
/* associates the special pseudo key <keyaction->name> with the given key action.
* after successfull registration the pseudo key can be used key binding aliases */
-bool vis_action_register(Vis*, KeyAction*);
+bool vis_action_register(Vis*, const KeyAction*);
enum VisOperator {
VIS_OP_DELETE,