aboutsummaryrefslogtreecommitdiffstats
path: root/dome_key_map.h
diff options
context:
space:
mode:
authorTeddy Wing2018-10-20 18:56:39 +0200
committerTeddy Wing2018-10-20 18:56:39 +0200
commite6b01e84d469fe7d17193e0a03b559a38cc175ee (patch)
treecc50e0613ebe152e9c9bf2160a342cbf87fa55bd /dome_key_map.h
parent2c6c0e13cebe29a56b56522ef9e6f2ccf33011f7 (diff)
downloaddome-key-map-e6b01e84d469fe7d17193e0a03b559a38cc175ee.tar.bz2
Add an FFI function to get a `Config` or read if from `config.toml`
Enables us to get a `Config` struct from the config file in the Objective-C app, which will then be passed to the `parse_args()` function to be further filled in.
Diffstat (limited to 'dome_key_map.h')
-rw-r--r--dome_key_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dome_key_map.h b/dome_key_map.h
index 224cc21..b61133d 100644
--- a/dome_key_map.h
+++ b/dome_key_map.h
@@ -42,6 +42,8 @@ void c_run_key_action(State *state, Trigger trigger, const Trigger *mode);
void config_free(Config *ptr);
+Config *config_read_from_file(void);
+
extern void dkess_press_key(int16_t key, CGEventFlags modifier_flags);
void logger_init(void);