bluez_generated/
profilemanager1.rs

1// This code was autogenerated with `dbus-codegen-rust --file=specs/org.bluez.ProfileManager1.xml --interfaces=org.bluez.ProfileManager1 --client=nonblock --methodtype=none --prop-newtype`, see https://github.com/diwic/dbus-rs
2#[allow(unused_imports)]
3use dbus::arg;
4use dbus::nonblock;
5
6pub trait OrgBluezProfileManager1 {
7    fn register_profile(
8        &self,
9        profile: dbus::Path,
10        uuid: &str,
11        options: arg::PropMap,
12    ) -> nonblock::MethodReply<()>;
13    fn unregister_profile(&self, profile: dbus::Path) -> nonblock::MethodReply<()>;
14}
15
16pub const ORG_BLUEZ_PROFILE_MANAGER1_NAME: &str = "org.bluez.ProfileManager1";
17
18impl<'a, T: nonblock::NonblockReply, C: ::std::ops::Deref<Target = T>> OrgBluezProfileManager1
19    for nonblock::Proxy<'a, C>
20{
21    fn register_profile(
22        &self,
23        profile: dbus::Path,
24        uuid: &str,
25        options: arg::PropMap,
26    ) -> nonblock::MethodReply<()> {
27        self.method_call(
28            "org.bluez.ProfileManager1",
29            "RegisterProfile",
30            (profile, uuid, options),
31        )
32    }
33
34    fn unregister_profile(&self, profile: dbus::Path) -> nonblock::MethodReply<()> {
35        self.method_call("org.bluez.ProfileManager1", "UnregisterProfile", (profile,))
36    }
37}