Add settings bindings

This commit is contained in:
Lucy 2022-01-21 11:01:06 -05:00
parent e660731756
commit e2c2fdea8f
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
3 changed files with 36 additions and 15 deletions

View file

@ -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