summaryrefslogtreecommitdiff
path: root/exes/all-in-one/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exes/all-in-one/src/main.rs')
-rw-r--r--exes/all-in-one/src/main.rs19
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) };
-}