summary history branches tags files
commit:607bfcf30c68803fbc3530f2289469c520b1d7ab
author:Trevor Bentley
committer:Trevor Bentley
date:Wed Feb 13 20:46:54 2019 +0100
parents:47bb77ffbaf3cfe380d9f1b699ea50bea21d81f5
Fix dummy/non-macos build
diff --git a/src/lib.rs b/src/lib.rs
line changes: +14/-4
index 8b83a75..b3b03ee
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -121,9 +121,16 @@ pub use osx::FruitCallbackKey;
 pub use osx::parse_url_event;
 
 #[cfg(any(not(target_os = "macos"), feature="dummy"))]
-pub enum FruitCallbackKey {}
+/// Docs in OS X build.
+pub enum FruitCallbackKey {
+    /// Docs in OS X build.
+    Method(&'static str),
+    /// Docs in OS X build.
+    Object(*mut u64),
+}
 
 #[cfg(any(not(target_os = "macos"), feature="dummy"))]
+/// Docs in OS X build.
 pub type FruitObjcCallback = Box<Fn(*mut u64)>;
 
 /// Main interface for controlling and interacting with the AppKit app
@@ -144,9 +151,9 @@ impl FruitApp {
         FruitApp{ tx: tx, rx: rx}
     }
     /// Docs in OS X build.
-    pub fn register_callback(&mut self, key: FruitCallbackKey, cb: FruitObjcCallback) {}
+    pub fn register_callback(&mut self, _key: FruitCallbackKey, _cb: FruitObjcCallback) {}
     /// Docs in OS X build.
-    pub fn register_apple_event(&mut self, class: u32, id: u32) {}
+    pub fn register_apple_event(&mut self, _class: u32, _id: u32) {}
     /// Docs in OS X build.
     pub fn set_activation_policy(&self, _policy: ActivationPolicy) {}
     /// Docs in OS X build.
@@ -186,7 +193,8 @@ impl FruitApp {
 }
 
 #[cfg(any(not(target_os = "macos"), feature="dummy"))]
-pub fn parse_url_event(event: *mut Object) -> String { "".into() }
+/// Docs in OS X build.
+pub fn parse_url_event(_event: *mut u64) -> String { "".into() }
 
 /// API to move the executable into a Mac app bundle and relaunch (if necessary)
 ///
@@ -213,6 +221,8 @@ impl Trampoline {
     /// Docs in OS X build.
     pub fn plist_keys(&mut self, _pairs: &Vec<(&str,&str)>) -> &mut Self { self }
     /// Docs in OS X build.
+    pub fn plist_raw_string(&mut self, _s: String) -> &mut Self { self }
+    /// Docs in OS X build.
     pub fn resource(&mut self, _file: &str) -> &mut Self { self }
     /// Docs in OS X build.
     pub fn resources(&mut self, _files: &Vec<&str>) -> &mut Self{ self }