chore: add secret agent
This commit is contained in:
parent
0d3d049516
commit
ee60f306f3
3 changed files with 38 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ members = [
|
||||||
"locale1",
|
"locale1",
|
||||||
"mpris2",
|
"mpris2",
|
||||||
"networkmanager",
|
"networkmanager",
|
||||||
|
"secret-agent",
|
||||||
"switcheroo-control",
|
"switcheroo-control",
|
||||||
"timedate",
|
"timedate",
|
||||||
"upower",
|
"upower",
|
||||||
|
|
|
||||||
7
nm-secret-agent-manager/Cargo.toml
Normal file
7
nm-secret-agent-manager/Cargo.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[package]
|
||||||
|
name = "nm-secret-agent-manager"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
zbus.workspace = true
|
||||||
30
nm-secret-agent-manager/src/lib.rs
Normal file
30
nm-secret-agent-manager/src/lib.rs
Normal 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<()>;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue