Skip to content

Commit a270e51

Browse files
committed
WIP serve interfaces
1 parent 83cd63f commit a270e51

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

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

0 commit comments

Comments
 (0)