aboutsummaryrefslogtreecommitdiff
path: root/src/locale.h
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2019-02-23 14:49:56 +0100
committerkoekeishiya <aasvi93@hotmail.com>2019-02-23 14:49:56 +0100
commit0e703c3f275f6d4477f452acfb9cf9c73b9d9f1e (patch)
tree6d46a0835b6614548ac9292067e8b3b4590e134f /src/locale.h
parenteeab7a37a2e017ea36d2385fd6b03b9572f181aa (diff)
downloadskhd-0e703c3f275f6d4477f452acfb9cf9c73b9d9f1e.tar.gz
skhd-0e703c3f275f6d4477f452acfb9cf9c73b9d9f1e.zip
#59 reload config when input source changes
Diffstat (limited to 'src/locale.h')
-rw-r--r--src/locale.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/locale.h b/src/locale.h
index d00a72e..7a1ec6e 100644
--- a/src/locale.h
+++ b/src/locale.h
@@ -3,6 +3,14 @@
#include <stdint.h>
+#define CF_NOTIFICATION_CALLBACK(name) \
+ void name(CFNotificationCenterRef center, \
+ void *observer, \
+ CFNotificationName name, \
+ const void *object, \
+ CFDictionaryRef userInfo)
+typedef CF_NOTIFICATION_CALLBACK(cf_notification_callback);
+
bool initialize_keycode_map(void);
uint32_t keycode_from_char(char key);