debug: Add dbus interface to control debug prints

This commit is contained in:
Dorota Czaplejewicz
2022-01-28 12:14:24 +00:00
parent 5a210712f6
commit bbceba7e9b
6 changed files with 123 additions and 9 deletions

View File

@ -4,6 +4,7 @@
/*! Glue for the main loop. */
use crate::outputs::OutputId;
use crate::debug;
use crate::state;
use glib::{Continue, MainContext, PRIORITY_DEFAULT, Receiver};
@ -94,6 +95,8 @@ mod c {
let now = Instant::now();
let state_manager = driver::Threaded::new(sender, state::Application::new(now));
debug::init(state_manager.clone());
let outputs = Outputs::new(state_manager.clone());
let mut wayland = Box::new(Wayland::new(outputs));
let wayland_raw = &mut *wayland as *mut _;