From 6bf50a40c9dc25ae33878d246a74ffc5106dd4a5 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 8 Mar 2021 22:52:10 +0100 Subject: Throw GLib.DBusError, GLib.IOError --- src/mpris2-interfaces.vala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/mpris2-interfaces.vala') diff --git a/src/mpris2-interfaces.vala b/src/mpris2-interfaces.vala index 250f0c5..6534741 100644 --- a/src/mpris2-interfaces.vala +++ b/src/mpris2-interfaces.vala @@ -28,8 +28,8 @@ public interface MprisRoot : Object { public abstract string Identity{owned get; set;} public abstract string DesktopEntry{owned get; set;} // methods - public abstract async void Quit() throws IOError; - public abstract async void Raise() throws IOError; + public abstract async void Quit() throws GLib.DBusError, GLib.IOError; + public abstract async void Raise() throws GLib.DBusError, GLib.IOError; } [DBus (name = "org.mpris.MediaPlayer2.Player")] @@ -42,10 +42,10 @@ public interface MprisPlayer : Object { public abstract bool CanGoNext{owned get; set;} public abstract bool CanGoPrevious{owned get; set;} // methods - public abstract async void PlayPause() throws IOError; - public abstract async void Next() throws IOError; - public abstract async void Previous() throws IOError; - public abstract async void Seek(int64 offset) throws IOError; + public abstract async void PlayPause() throws GLib.DBusError, GLib.IOError; + public abstract async void Next() throws GLib.DBusError, GLib.IOError; + public abstract async void Previous() throws GLib.DBusError, GLib.IOError; + public abstract async void Seek(int64 offset) throws GLib.DBusError, GLib.IOError; // signals public signal void Seeked(int64 new_position); } @@ -71,11 +71,11 @@ public interface MprisPlaylists : Object { public abstract ActivePlaylistContainer? ActivePlaylist {owned get; set;} //methods - public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws IOError; + public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws GLib.DBusError, GLib.IOError; public abstract async PlaylistDetails[]? GetPlaylists ( uint32 index, uint32 max_count, string order, - bool reverse_order ) throws IOError; + bool reverse_order ) throws GLib.DBusError, GLib.IOError; //signals public signal void PlaylistChanged (PlaylistDetails details); -- cgit v1.2.3