citadel-tools/realmsd/src/main.rs

20 lines
425 B
Rust
Raw Normal View History

2019-08-25 21:15:13 +00:00
#[macro_use] extern crate libcitadel;
2020-08-03 23:17:05 +00:00
use libcitadel::{RealmManager, Result, Logger, LogLevel};
2019-08-25 21:15:13 +00:00
mod dbus;
mod devices;
fn main() {
if let Err(e) = run_dbus_server() {
warn!("Error: {}", e);
}
}
fn run_dbus_server() -> Result<()> {
2020-08-03 23:17:05 +00:00
Logger::set_log_level(LogLevel::Verbose);
2019-08-25 21:15:13 +00:00
let manager = RealmManager::load()?;
let server = dbus::DbusServer::connect(manager)?;
server.start()?;
Ok(())
}