aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index d6c505f..18bb5b4 100644
--- a/main.c
+++ b/main.c
@@ -43,8 +43,8 @@ struct Mode {
KeyBinding *bindings;
const char *name;
bool common_prefix;
- void (*enter)(void);
- void (*leave)(void);
+ void (*enter)(Mode *old);
+ void (*leave)(Mode *new);
bool (*unknown)(Key *key0, Key *key1); /* unknown key for this mode, return value determines whether parent modes will be checked */
bool (*input)(const char *str, size_t len); /* unknown key for this an all parent modes */
};