aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-08-25 04:58:53 +0200
committerTeddy Wing2018-08-25 05:03:46 +0200
commitcdac4ed1ce81b76e6684f778fd07c8ebdacce556 (patch)
tree3d40fd23cf36774b0368db32d48959da677b5f83 /src/lib.rs
parent4b64b69e900e3eae5c410055c4c03a59c45419c2 (diff)
downloaddome-key-map-cdac4ed1ce81b76e6684f778fd07c8ebdacce556.tar.bz2
Configure for importing from C/FFI
* Add `#[repr(C)]` on `HeadphoneButton` to hopefully be able to use it outside Rust * Add `#[no_mangle]` to `run_key_action()` * Export `run_key_action()` as a public function * Build the crate as a static library (But holy cow, a 19 MB library file?)
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7fb0b92..3127631 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,3 +7,5 @@ mod cocoa_bridge;
mod parser;
use parser::{HeadphoneButton, MapGroup, MapKind};
+
+pub use cocoa_bridge::run_key_action;