chore: add secret agent

This commit is contained in:
Ashley Wulber 2025-12-19 11:39:25 -05:00 committed by Ashley Wulber
parent 0d3d049516
commit ee60f306f3
3 changed files with 38 additions and 0 deletions

View file

@ -12,6 +12,7 @@ members = [
"locale1",
"mpris2",
"networkmanager",
"secret-agent",
"switcheroo-control",
"timedate",
"upower",

View file

@ -0,0 +1,7 @@
[package]
name = "nm-secret-agent-manager"
version = "0.1.0"
edition = "2024"
[dependencies]
zbus.workspace = true

View file

@ -0,0 +1,30 @@
//! # D-Bus interface proxy for: `org.freedesktop.NetworkManager.AgentManager`
//!
//! This code was generated by `zbus-xmlgen` `5.0.0` from D-Bus introspection data.
//! Source: `test.xml`.
//!
//! You may prefer to adapt it, instead of using it verbatim.
//!
//! More information can be found in the [Writing a client proxy] section of the zbus
//! documentation.
//!
//!
//! [Writing a client proxy]: https://dbus2.github.io/zbus/client.html
//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
use zbus::proxy;
#[proxy(
interface = "org.freedesktop.NetworkManager.AgentManager",
default_service = "org.freedesktop.NetworkManager",
default_path = "/org/freedesktop/NetworkManager/AgentManager",
assume_defaults = true
)]
pub trait AgentManager {
/// Register method
fn register(&self, identifier: &str) -> zbus::Result<()>;
/// RegisterWithCapabilities method
fn register_with_capabilities(&self, identifier: &str, capabilities: u32) -> zbus::Result<()>;
/// Unregister method
fn unregister(&self) -> zbus::Result<()>;
}