mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 18:02:00 -04:00
user_manager: Start bringing up user manager
This commit is contained in:
parent
65d8ff958e
commit
bf521a7bbb
4 changed files with 59 additions and 1 deletions
30
src/user_manager.rs
Normal file
30
src/user_manager.rs
Normal 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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue