Skip to content

Commit e2c33ed

Browse files
committed
WIP serve interfaces
1 parent cd1748d commit e2c33ed

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/dbus/mod.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,21 @@ pub fn ready(common: &Common) -> Result<()> {
8484

8585
Ok(())
8686
}
87+
88+
/*
89+
/// Serve interfaces on session socket
90+
///
91+
/// (Currently only the a11y keyboard monitor interface)
92+
fn serve_interfaces(executor: &ThreadPool) {
93+
let executor_clone = executor.clone();
94+
executor.spawn_ok(async move {
95+
serve_interfaces_inner(&executor_clone);
96+
});
97+
}
98+
99+
async fn serve_interfaces_inner(executor: &ThreadPool, a11y_clients: Arc<Mutex<a11y_keyboard_monitor::Clients>>) -> zbus::Result<()> {
100+
let conn = zbus::Connection::session().await?;
101+
name_owners::NameOwners::new(&conn, executor).await?;
102+
Ok(())
103+
}
104+
*/

0 commit comments

Comments
 (0)