aboutsummaryrefslogtreecommitdiffstats
path: root/includer.c
diff options
context:
space:
mode:
authorTeddy Wing2018-08-29 14:06:02 +0200
committerTeddy Wing2018-08-29 14:06:02 +0200
commitd027ea9e6425fa485dd6f32d414f4ab848b48c9a (patch)
treee524c923b4f6379fb195d154e1fb30bb956505ec /includer.c
parentb8b09aa2ef1e945aaf7283de63d1d1f57585373b (diff)
downloaddome-key-map-d027ea9e6425fa485dd6f32d414f4ab848b48c9a.tar.bz2
c_run_key_action(): Add `mode` argument
Add a nullable `mode` argument like `trigger`. Change `trigger` to make it non-nullable again. We can now pass a mode trigger in from FFI and handle it in our Rust function.
Diffstat (limited to 'includer.c')
-rw-r--r--includer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/includer.c b/includer.c
index fae44b3..c1bc51a 100644
--- a/includer.c
+++ b/includer.c
@@ -9,7 +9,7 @@ int main() {
.buttons = buttons,
.length = SIZE
};
- const CKeyActionResult *result = c_run_key_action(&trigger);
+ const CKeyActionResult *result = c_run_key_action(trigger, NULL);
printf("%s", result->action);
return 0;