chore: setup macos module
parent
440b02678a
commit
c351167e00
|
@ -0,0 +1,9 @@
|
|||
use crate::types::{Error, Event};
|
||||
|
||||
pub fn start(callback: fn(Event)) -> Result<(), Error> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn stop() -> Result<(), Error> {
|
||||
Ok(())
|
||||
}
|
|
@ -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()
|
||||
}
|
||||
|
|
Reference in New Issue