aboutsummaryrefslogtreecommitdiff
path: root/src/freedesktop-interfaces.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-09 15:05:33 +0000
committerConor Curran <conor.curran@canonical.com>2011-01-09 15:05:33 +0000
commit07197b0c4a8153ad65daecf920d0e0d51b1bebbc (patch)
tree52b20e6ecd1ea961f5581cbdfaadc0da1838fef1 /src/freedesktop-interfaces.vala
parentd34f1878510f6f23a0e238e359d0e057f2991908 (diff)
downloadayatana-indicator-sound-07197b0c4a8153ad65daecf920d0e0d51b1bebbc.tar.gz
ayatana-indicator-sound-07197b0c4a8153ad65daecf920d0e0d51b1bebbc.tar.bz2
ayatana-indicator-sound-07197b0c4a8153ad65daecf920d0e0d51b1bebbc.zip
nice refactor or mpris code
Diffstat (limited to 'src/freedesktop-interfaces.vala')
-rw-r--r--src/freedesktop-interfaces.vala41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/freedesktop-interfaces.vala b/src/freedesktop-interfaces.vala
new file mode 100644
index 0000000..3e5d832
--- /dev/null
+++ b/src/freedesktop-interfaces.vala
@@ -0,0 +1,41 @@
+/*
+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;
+}
+
+public errordomain XmlError {
+ FILE_NOT_FOUND,
+ XML_DOCUMENT_EMPTY
+}
+
+const string FREEDESKTOP_SERVICE = "org.freedesktop.DBus";
+const string FREEDESKTOP_OBJECT = "/org/freedesktop/DBus";
+
+