Commit 4025ad29 authored by Jens Georg's avatar Jens Georg

all: Fix warings rergarding DBus errors

Newer vala wants us to throw IOError and DBusError
parent 388da813
......@@ -26,7 +26,7 @@ public interface Rygel.DBusInterface : Object {
public const string SERVICE_NAME = "org.gnome.Rygel1";
public const string OBJECT_PATH = "/org/gnome/Rygel1";
public abstract void shutdown () throws IOError;
public abstract void shutdown () throws IOError, DBusError;
}
[DBus (name = "org.gnome.Rygel1.AclProvider1")]
......
......@@ -51,22 +51,26 @@ public interface Rygel.External.MediaContainerProxy : DBusProxy,
public abstract async HashTable<string,Variant>[] list_children
(uint offset,
uint max_count,
string[] filter) throws DBusError;
string[] filter)
throws IOError, DBusError;
public abstract async HashTable<string,Variant>[] list_containers
(uint offset,
uint max_count,
string[] filter) throws DBusError;
string[] filter)
throws IOError, DBusError;
public abstract async HashTable<string,Variant>[] list_items
(uint offset,
uint max_count,
string[] filter) throws DBusError;
string[] filter)
throws IOError, DBusError;
// Optional API
public abstract async HashTable<string,Variant>[] search_objects
(string query,
uint offset,
uint max_count,
string[] filter) throws DBusError;
string[] filter)
throws IOError, DBusError;
public abstract ObjectPath icon { owned get; set; }
}
......
......@@ -46,10 +46,10 @@ public interface Rygel.MPRIS.MediaPlayer.PlayerProxy : DBusProxy,
public abstract bool can_control { get; }
public abstract HashTable<string,Variant> metadata { owned get; }
public abstract void pause () throws DBusError;
public abstract void play_pause () throws DBusError;
public abstract void stop () throws DBusError;
public abstract void play () throws DBusError;
public abstract void seek (int64 offset) throws DBusError;
public abstract void open_uri (string uri) throws DBusError;
public abstract void pause () throws IOError, DBusError;
public abstract void play_pause () throws IOError, DBusError;
public abstract void stop () throws IOError, DBusError;
public abstract void play () throws IOError, DBusError;
public abstract void seek (int64 offset) throws IOError, DBusError;
public abstract void open_uri (string uri) throws IOError, DBusError;
}
......@@ -30,19 +30,22 @@ public struct Event {
[DBus (name = "org.freedesktop.Tracker1.Statistics")]
public interface Rygel.Tracker.StatsIface : DBusProxy {
public abstract string[,] get () throws DBusError;
public abstract string[,] get () throws IOError, DBusError;
}
[DBus (name = "org.freedesktop.Tracker1.Resources")]
public interface Rygel.Tracker.ResourcesIface: DBusProxy {
public abstract async string[,] sparql_query (string query)
throws DBusError;
public abstract async void sparql_update (string query) throws DBusError;
throws IOError, DBusError;
public abstract async void sparql_update (string query)
throws IOError, DBusError;
public abstract async HashTable<string,string>[,] sparql_update_blank
(string query) throws DBusError;
(string query)
throws IOError, DBusError;
}
[DBus (name = "org.freedesktop.Tracker1.Miner.Files.Index")]
public interface Rygel.Tracker.MinerFilesIndexIface: DBusProxy {
public abstract async void index_file (string uri) throws DBusError;
public abstract async void index_file (string uri)
throws IOError, DBusError;
}
......@@ -31,7 +31,7 @@ internal class Rygel.DBusService : Object, DBusInterface {
this.main = main;
}
public void shutdown () throws IOError {
public void shutdown () throws IOError, DBusError {
this.main.exit (0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment