aboutsummaryrefslogtreecommitdiff
path: root/src/freedesktop-interfaces.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-09 16:31:12 +0000
committerConor Curran <conor.curran@canonical.com>2011-01-09 16:31:12 +0000
commitc49d87b94dc4a8fe3ccb2c150ad1cd34404630f2 (patch)
tree8824cfe53ae0fea3a90f6489e3eed8610e74da86 /src/freedesktop-interfaces.vala
parentce996a8b02131d9711cc3dee67f6c3844e55b8e8 (diff)
parent33e8e6c2ac125ba3806032ea3ef730bd5c782ac8 (diff)
downloadayatana-indicator-sound-c49d87b94dc4a8fe3ccb2c150ad1cd34404630f2.tar.gz
ayatana-indicator-sound-c49d87b94dc4a8fe3ccb2c150ad1cd34404630f2.tar.bz2
ayatana-indicator-sound-c49d87b94dc4a8fe3ccb2c150ad1cd34404630f2.zip
mpris interface introspection working nicel to determine playlist support
Diffstat (limited to 'src/freedesktop-interfaces.vala')
-rw-r--r--src/freedesktop-interfaces.vala47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/freedesktop-interfaces.vala b/src/freedesktop-interfaces.vala
new file mode 100644
index 0000000..4d75044
--- /dev/null
+++ b/src/freedesktop-interfaces.vala
@@ -0,0 +1,47 @@
+/*
+Copyright 2010 Canonical Ltd.
+
+Authors:
+ Conor Curran <conor.curran@canonical.com>
+
+This program is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License version 3, as published
+by the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranties of
+MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
+PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+[DBus (name = "org.freedesktop.DBus")]
+public interface FreeDesktopObject: Object {
+ public abstract async string[] list_names() throws IOError;
+ public abstract signal void name_owner_changed ( string name,
+ string old_owner,
+ string new_owner );
+}
+
+[DBus (name = "org.freedesktop.DBus.Introspectable")]
+public interface FreeDesktopIntrospectable: Object {
+ public abstract string Introspect() throws IOError;
+}
+
+[DBus (name = "org.freedesktop.DBus.Properties")]
+public interface FreeDesktopProperties : Object{
+ public signal void PropertiesChanged (string source, HashTable<string, Variant?> changed_properties,
+ string[] invalid );
+}
+
+public errordomain XmlError {
+ FILE_NOT_FOUND,
+ XML_DOCUMENT_EMPTY
+}
+
+const string FREEDESKTOP_SERVICE = "org.freedesktop.DBus";
+const string FREEDESKTOP_OBJECT = "/org/freedesktop/DBus";
+
+