Skip to content

Commit 9d88398

Browse files
committed
WIP serve interfaces
1 parent 70e16e2 commit 9d88398

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
@@ -82,3 +82,21 @@ pub fn ready(common: &Common) -> Result<()> {
8282

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

0 commit comments

Comments
 (0)