diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-16 15:43:10 +0400 |
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-16 15:43:10 +0400 |
| commit | 0f90d0f3d30a728457e6bc5c4d1d933a8014e099 (patch) | |
| tree | b1468081a32546e8d01fba622f978cdd326cf6fd /exes/all-in-one/src/main.rs | |
| parent | 277f38bbe89e4db57b73a4e28bf1be2f5c50ce27 (diff) | |
new build system
Diffstat (limited to 'exes/all-in-one/src/main.rs')
| -rw-r--r-- | exes/all-in-one/src/main.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/exes/all-in-one/src/main.rs b/exes/all-in-one/src/main.rs deleted file mode 100644 index 1e65883..0000000 --- a/exes/all-in-one/src/main.rs +++ /dev/null @@ -1,19 +0,0 @@ -use all_in_one::ffi::{create_instance, load_config, stop_instance}; -use std::sync::mpsc::channel; - -fn main() { - let c = load_config(); - let comp = unsafe { create_instance(c) }; - - // wait for signal - let (tx, rx) = channel(); - - ctrlc::set_handler(move || tx.send(()).expect("Could not send signal on channel.")) - .expect("Error setting Ctrl-C handler"); - - rx.recv().unwrap(); - - println!("Exiting."); - - unsafe { stop_instance(comp) }; -} |
