Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions bluez-generated/specs/org.bluez.Device1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,35 @@
<interface name="org.bluez.Battery1">
<property name="Percentage" type="y" access="read"/>
</interface>
<interface name="org.bluez.MediaControl1">
<method name="Play">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Pause">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Stop">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Next">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Previous">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="VolumeUp">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="VolumeDown">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="FastForward">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Rewind">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<property name="Connected" type="b" access="read"/>
<property name="Player" type="o" access="read"/>
</interface>
</node>
27 changes: 27 additions & 0 deletions bluez-generated/specs/org.bluez.MediaControl1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,33 @@
<property name="UUID" type="s" access="read"/>
</interface>
<interface name="org.bluez.MediaControl1">
<method name="Play">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Pause">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Stop">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Next">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Previous">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="VolumeUp">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="VolumeDown">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="FastForward">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Rewind">
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<property name="Connected" type="b" access="read"/>
<property name="Player" type="o" access="read"/>
</interface>
Expand Down
63 changes: 63 additions & 0 deletions bluez-generated/src/mediacontrol1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ use dbus::arg;
use dbus::nonblock;

pub trait OrgBluezMediaControl1 {
#[deprecated(note = "true")]
fn play(&self) -> nonblock::MethodReply<()>;
#[deprecated(note = "true")]
fn pause(&self) -> nonblock::MethodReply<()>;
#[deprecated(note = "true")]
fn stop(&self) -> nonblock::MethodReply<()>;
#[deprecated(note = "true")]
fn next(&self) -> nonblock::MethodReply<()>;
#[deprecated(note = "true")]
fn previous(&self) -> nonblock::MethodReply<()>;
#[deprecated(note = "true")]
fn volume_up(&self) -> nonblock::MethodReply<()>;
#[deprecated(note = "true")]
fn volume_down(&self) -> nonblock::MethodReply<()>;
#[deprecated(note = "true")]
fn fast_forward(&self) -> nonblock::MethodReply<()>;
#[deprecated(note = "true")]
fn rewind(&self) -> nonblock::MethodReply<()>;
fn connected(&self) -> nonblock::MethodReply<bool>;
fn player(&self) -> nonblock::MethodReply<dbus::Path<'static>>;
}
Expand Down Expand Up @@ -32,6 +50,51 @@ impl<'a> OrgBluezMediaControl1Properties<'a> {
impl<'a, T: nonblock::NonblockReply, C: ::std::ops::Deref<Target = T>> OrgBluezMediaControl1
for nonblock::Proxy<'a, C>
{
#[deprecated(note = "true")]
fn play(&self) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.MediaControl1", "Play", ())
}

#[deprecated(note = "true")]
fn pause(&self) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.MediaControl1", "Pause", ())
}

#[deprecated(note = "true")]
fn stop(&self) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.MediaControl1", "Stop", ())
}

#[deprecated(note = "true")]
fn next(&self) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.MediaControl1", "Next", ())
}

#[deprecated(note = "true")]
fn previous(&self) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.MediaControl1", "Previous", ())
}

#[deprecated(note = "true")]
fn volume_up(&self) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.MediaControl1", "VolumeUp", ())
}

#[deprecated(note = "true")]
fn volume_down(&self) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.MediaControl1", "VolumeDown", ())
}

#[deprecated(note = "true")]
fn fast_forward(&self) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.MediaControl1", "FastForward", ())
}

#[deprecated(note = "true")]
fn rewind(&self) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.MediaControl1", "Rewind", ())
}

fn connected(&self) -> nonblock::MethodReply<bool> {
<Self as nonblock::stdintf::org_freedesktop_dbus::Properties>::get(
&self,
Expand Down