aboutsummaryrefslogtreecommitdiffstats
path: root/src/cocoa_bridge.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-08-23 10:02:56 +0200
committerTeddy Wing2018-08-23 10:04:28 +0200
commitb33feb5c94bf346ddc5dee68c7bf8c6b039168db (patch)
tree6b16f6e66a453c748792cd3e47e398bcb8326eb9 /src/cocoa_bridge.rs
parent6624aea48840df2714b968d8a6d40579eaf41b86 (diff)
downloaddome-key-map-b33feb5c94bf346ddc5dee68c7bf8c6b039168db.tar.bz2
Rename my `cocoa` module to `cocoa_bridge`
My `cocoa` module was conflicting with the `cocoa` crate. Didn't think about that. Rename it to fix the conflict.
Diffstat (limited to 'src/cocoa_bridge.rs')
-rw-r--r--src/cocoa_bridge.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cocoa_bridge.rs b/src/cocoa_bridge.rs
new file mode 100644
index 0000000..58d74d2
--- /dev/null
+++ b/src/cocoa_bridge.rs
@@ -0,0 +1,13 @@
+extern crate cocoa;
+
+use MapGroup;
+
+pub extern "C" fn x() {
+ let sample_maps = "map <up> k
+map <down> j";
+
+ let map_group = MapGroup::parse(sample_maps);
+
+ unsafe {
+ }
+}