user_manager: Start bringing up user manager

This commit is contained in:
Vicki Pfau 2024-04-24 17:04:53 -07:00
parent 65d8ff958e
commit bf521a7bbb
4 changed files with 59 additions and 1 deletions

30
src/user_manager.rs Normal file
View file

@ -0,0 +1,30 @@
/*
* Copyright © 2023 Collabora Ltd.
* Copyright © 2024 Valve Software
* Copyright © 2024 Igalia S.L.
*
* SPDX-License-Identifier: MIT
*/
use anyhow::Result;
use zbus::{interface, Connection};
use crate::API_VERSION;
pub struct SteamOSManagerUser {
connection: Connection,
}
impl SteamOSManagerUser {
pub async fn new(connection: Connection) -> Result<Self> {
Ok(SteamOSManagerUser { connection })
}
}
#[interface(name = "com.steampowered.SteamOSManager1.UserManager")]
impl SteamOSManagerUser {
#[zbus(property(emits_changed_signal = "const"))]
async fn version(&self) -> u32 {
API_VERSION
}
}