Update to zbus 5.x

https://github.com/dbus2/zbus/releases/tag/zbus-5.0.0

Now requires `pub` on uses of `#[proxy]` if the generated types should
be `pub`.
This commit is contained in:
Ian Douglas Scott 2024-10-28 14:22:30 -07:00 committed by Michael Murphy
parent ac5713df52
commit 3b86984332
26 changed files with 30 additions and 32 deletions

View file

@ -26,7 +26,7 @@ use zbus::proxy;
interface = "org.mpris.MediaPlayer2",
default_path = "/org/mpris/MediaPlayer2"
)]
trait MediaPlayer2 {
pub trait MediaPlayer2 {
/// Quit method
fn quit(&self) -> zbus::Result<()>;

View file

@ -27,7 +27,7 @@ use zbus::proxy;
interface = "org.mpris.MediaPlayer2.Player",
default_path = "/org/mpris/MediaPlayer2"
)]
trait Player {
pub trait Player {
/// Next method
fn next(&self) -> zbus::Result<()>;

View file

@ -26,7 +26,7 @@ use zbus::proxy;
interface = "org.mpris.MediaPlayer2.Playlists",
default_path = "/org/mpris/MediaPlayer2"
)]
trait Playlists {
pub trait Playlists {
/// ActivatePlaylist method
fn activate_playlist(&self, playlist_id: &PlaylistId) -> zbus::Result<()>;

View file

@ -26,7 +26,7 @@ use zbus::proxy;
interface = "org.mpris.MediaPlayer2.TrackList",
default_path = "/org/mpris/MediaPlayer2"
)]
trait TrackList {
pub trait TrackList {
/// AddTrack method
fn add_track(&self, uri: &str, after_track: &TrackId, set_as_current: bool)
-> zbus::Result<()>;

View file

@ -25,9 +25,7 @@ pub enum PlaylistOrdering {
}
impl Type for PlaylistOrdering {
fn signature() -> Signature<'static> {
String::signature()
}
const SIGNATURE: &'static Signature = String::SIGNATURE;
}
impl<'a> TryFrom<Value<'a>> for PlaylistOrdering {