diff options
| author | Teddy Wing | 2018-08-25 04:58:53 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2018-08-25 05:03:46 +0200 | 
| commit | cdac4ed1ce81b76e6684f778fd07c8ebdacce556 (patch) | |
| tree | 3d40fd23cf36774b0368db32d48959da677b5f83 /src/lib.rs | |
| parent | 4b64b69e900e3eae5c410055c4c03a59c45419c2 (diff) | |
| download | dome-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.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
| @@ -7,3 +7,5 @@ mod cocoa_bridge;  mod parser;  use parser::{HeadphoneButton, MapGroup, MapKind}; + +pub use cocoa_bridge::run_key_action; | 
