aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-interfaces.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2012-02-29 21:05:26 +0000
committerConor Curran <conor.curran@canonical.com>2012-02-29 21:05:26 +0000
commit5d56e1dc1ee21ec92028275690b5ce2f7595e68e (patch)
tree56b9cdddbda6b273e98cc9cf726defec7beceb30 /src/mpris2-interfaces.vala
parent062aadf6d9ab7f1cecfab74159507047d52dc6d8 (diff)
downloadayatana-indicator-sound-5d56e1dc1ee21ec92028275690b5ce2f7595e68e.tar.gz
ayatana-indicator-sound-5d56e1dc1ee21ec92028275690b5ce2f7595e68e.tar.bz2
ayatana-indicator-sound-5d56e1dc1ee21ec92028275690b5ce2f7595e68e.zip
make sure to return if there is no valid playlist
Diffstat (limited to 'src/mpris2-interfaces.vala')
-rw-r--r--src/mpris2-interfaces.vala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mpris2-interfaces.vala b/src/mpris2-interfaces.vala
index 5dab1d2..57b582d 100644
--- a/src/mpris2-interfaces.vala
+++ b/src/mpris2-interfaces.vala
@@ -49,9 +49,9 @@ public interface MprisPlayer : Object {
// Playlist container
public struct PlaylistDetails{
- public ObjectPath path;
- public string name;
- public string icon_path;
+ public ObjectPath? path;
+ public string? name;
+ public string? icon_path;
}
// Active playlist property container
@@ -69,11 +69,11 @@ public interface MprisPlaylists : Object {
//methods
public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws IOError;
- public abstract async PlaylistDetails[] GetPlaylists ( uint32 index,
+ public abstract async PlaylistDetails[]? GetPlaylists ( int32 index,
uint32 max_count,
string order,
bool reverse_order ) throws IOError;
//signals
public signal void PlaylistChanged (PlaylistDetails details);
-} \ No newline at end of file
+}