Skip to content

Commit 956a8a4

Browse files
committed
WIP serve interfaces
1 parent 63ff7c6 commit 956a8a4

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

106106
Ok(())
107107
}
108+
109+
/*
110+
/// Serve interfaces on session socket
111+
///
112+
/// (Currently only the a11y keyboard monitor interface)
113+
fn serve_interfaces(executor: &ThreadPool) {
114+
let executor_clone = executor.clone();
115+
executor.spawn_ok(async move {
116+
serve_interfaces_inner(&executor_clone);
117+
});
118+
}
119+
120+
async fn serve_interfaces_inner(executor: &ThreadPool, a11y_clients: Arc<Mutex<a11y_keyboard_monitor::Clients>>) -> zbus::Result<()> {
121+
let conn = zbus::Connection::session().await?;
122+
name_owners::NameOwners::new(&conn, executor).await?;
123+
Ok(())
124+
}
125+
*/

0 commit comments

Comments
 (0)