changeset 2705:f3bc7cb81ed8 trunk

[svn] - define mpris /Player object in XML.
author nenolod
date Mon, 07 May 2007 18:04:06 -0700
parents 7d9139b393ce
children 958d12f78138
files ChangeLog src/audacious/Makefile src/audacious/build_stamp.c src/audacious/mpris_player.xml
diffstat 4 files changed, 82 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon May 07 17:56:35 2007 -0700
+++ b/ChangeLog	Mon May 07 18:04:06 2007 -0700
@@ -1,3 +1,12 @@
+2007-05-08 00:56:35 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [4434]
+  - define mpris /TrackList object in XML.
+  
+  trunk/src/audacious/Makefile            |    3 +-
+  trunk/src/audacious/mpris_tracklist.xml |   48 ++++++++++++++++++++++++++++++++
+  2 files changed, 50 insertions(+), 1 deletion(-)
+
+
 2007-05-08 00:51:05 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [4432]
   - add mpris root node to dbus-bindings.
--- a/src/audacious/Makefile	Mon May 07 17:56:35 2007 -0700
+++ b/src/audacious/Makefile	Mon May 07 18:04:06 2007 -0700
@@ -127,6 +127,7 @@
 	$(DBUS_BINDING_TOOL) --mode=glib-server --prefix=audacious_remote objects.xml > $@
 	$(DBUS_BINDING_TOOL) --mode=glib-server --prefix=mpris_root mpris_root.xml >> $@
 	$(DBUS_BINDING_TOOL) --mode=glib-server --prefix=mpris_tracklist mpris_tracklist.xml >> $@
+	$(DBUS_BINDING_TOOL) --mode=glib-server --prefix=mpris_player mpris_player.xml >> $@
 	@printf "%10s     %-20s\n" DBUS-BIND $@
 
 OBJECTIVE_DATA = audacious.desktop:$(datadir)/applications
--- a/src/audacious/build_stamp.c	Mon May 07 17:56:35 2007 -0700
+++ b/src/audacious/build_stamp.c	Mon May 07 18:04:06 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070508-4432";
+const gchar *svn_stamp = "20070508-4434";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/audacious/mpris_player.xml	Mon May 07 18:04:06 2007 -0700
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - Audacious: A cross-platform multimedia player
+ - Copyright (c) 2007 William Pitcock
+ -
+ - This program is free software; you can redistribute it and/or modify
+ - it under the terms of the GNU General Public License as published by
+ - the Free Software Foundation; under version 2 of the License.
+ -
+ - This program is distributed in the hope that it will be useful,
+ - but WITHOUT ANY WARRANTY; without even the implied warranty of
+ - MERCHANTABILITY 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, write to the Free Software
+ - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ - 02110-1301, USA.
+ -->
+
+<node name="/Player">
+    <interface name="org.freedesktop.MediaPlayer">
+        <method name="Next" />
+        <method name="Prev" />
+        <method name="Pause" />
+        <method name="Stop" />
+        <method name="Play" />
+        <method name="Quit" />
+
+        <method name="Repeat">
+            <arg type="b" direction="in" />
+        </method>
+
+        <method name="GetStatus">
+            <arg type="i" direction="out" />
+        </method>
+
+        <method name="GetCaps">
+            <arg type="i" direction="out" />
+        </method>
+
+        <method name="VolumeSet">
+            <arg type="i" direction="in" />
+        </method>
+
+        <method name="VolumeGet">
+            <arg type="i" direction="out" />
+        </method>
+
+        <method name="PositionSet">
+            <arg type="i" direction="in" />
+        </method>
+
+        <method name="PositionGet">
+            <arg type="i" direction="out" />
+        </method>
+
+        <signal name="CapsChange">
+            <arg type="i" />
+        </signal>
+
+        <signal name="TrackChange">
+            <arg type="a{sv}" />
+        </signal>
+
+        <signal name="StatusChange">
+            <arg type="i" />
+        </signal>
+    </interface>
+</node>