Add settings bindings
This commit is contained in:
parent
e660731756
commit
e2c2fdea8f
3 changed files with 36 additions and 15 deletions
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
pub mod connection;
|
||||
|
||||
use crate::settings::connection::Settings;
|
||||
use zbus::dbus_proxy;
|
||||
|
||||
#[dbus_proxy(
|
||||
|
|
@ -33,19 +34,13 @@ pub trait Settings {
|
|||
/// AddConnection method
|
||||
fn add_connection(
|
||||
&self,
|
||||
connection: std::collections::HashMap<
|
||||
&str,
|
||||
std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
|
||||
>,
|
||||
connection: &Settings,
|
||||
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
|
||||
|
||||
/// AddConnection2 method
|
||||
fn add_connection2(
|
||||
&self,
|
||||
settings: std::collections::HashMap<
|
||||
&str,
|
||||
std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
|
||||
>,
|
||||
settings: &Settings,
|
||||
flags: u32,
|
||||
args: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
|
||||
) -> zbus::Result<(
|
||||
|
|
@ -56,10 +51,7 @@ pub trait Settings {
|
|||
/// AddConnectionUnsaved method
|
||||
fn add_connection_unsaved(
|
||||
&self,
|
||||
connection: std::collections::HashMap<
|
||||
&str,
|
||||
std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
|
||||
>,
|
||||
connection: &Settings,
|
||||
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
|
||||
|
||||
/// GetConnectionByUuid method
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue