chore: setup macos module

pull/11/head
paring 2022-11-03 13:56:17 +09:00
parent 440b02678a
commit c351167e00
2 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,9 @@
use crate::types::{Error, Event};
pub fn start(callback: fn(Event)) -> Result<(), Error> {
Ok(())
}
pub fn stop() -> Result<(), Error> {
Ok(())
}

View File

@ -32,12 +32,15 @@ pub fn stop() -> Result<(), Error> {
// ------- MACOS -------
#[cfg(target_os = "macos")]
pub mod macos;
#[cfg(target_os = "macos")]
pub fn run(callback: fn(Event)) -> Result<(), Error> {
Ok(())
macos::start(callback)
}
#[cfg(target_os = "macos")]
pub fn stop() -> Result<(), Error> {
Ok(())
macos::stop()
}