aboutsummaryrefslogtreecommitdiffstats
path: root/dome_key_map.h
diff options
context:
space:
mode:
authorTeddy Wing2018-08-29 14:06:02 +0200
committerTeddy Wing2018-08-29 14:06:02 +0200
commitd027ea9e6425fa485dd6f32d414f4ab848b48c9a (patch)
treee524c923b4f6379fb195d154e1fb30bb956505ec /dome_key_map.h
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 'dome_key_map.h')
-rw-r--r--dome_key_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dome_key_map.h b/dome_key_map.h
index c6bf4c1..88f7abf 100644
--- a/dome_key_map.h
+++ b/dome_key_map.h
@@ -27,4 +27,4 @@ typedef struct {
size_t length;
} Trigger;
-const CKeyActionResult *c_run_key_action(const Trigger *trigger);
+const CKeyActionResult *c_run_key_action(Trigger trigger, const Trigger *mode);