1 /*****************************************************************************
2 * dbus_introspect.h : dbus control module (mpris v2.2) - introspection data
3 *****************************************************************************
4 * Copyright © 2006-2011 Rafaël Carré
5 * Copyright © 2007-2011 Mirsal Ennaime
6 * Copyright © 2009-2011 The VideoLAN team
7 * Copyright © 2013 Alex Merry
10 * Authors: Mirsal Ennaime <mirsal at mirsal fr>
11 * Rafaël Carré <funman at videolanorg>
12 * Alex Merry <dev at randomguy3 me uk>
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
27 *****************************************************************************/
29 #ifndef _VLC_DBUS_INTROSPECT_H
30 #define _VLC_DBUS_INTROSPECT_H
32 #include "dbus_common.h"
34 /* XML data to answer org.freedesktop.DBus.Introspectable.Introspect requests */
35 static const char* psz_introspection_xml =
36 "<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\"\n"
37 "\"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\">\n"
39 " <interface name=\"org.freedesktop.DBus.Introspectable\">\n"
40 " <method name=\"Introspect\">\n"
41 " <arg name=\"data\" direction=\"out\" type=\"s\"/>\n"
44 " <interface name=\"org.freedesktop.DBus.Properties\">\n"
45 " <method name=\"Get\">\n"
46 " <arg direction=\"in\" type=\"s\"/>\n"
47 " <arg direction=\"in\" type=\"s\"/>\n"
48 " <arg direction=\"out\" type=\"v\"/>\n"
50 " <method name=\"Set\">\n"
51 " <arg direction=\"in\" type=\"s\"/>\n"
52 " <arg direction=\"in\" type=\"s\"/>\n"
53 " <arg direction=\"in\" type=\"v\"/>\n"
55 " <method name=\"GetAll\">\n"
56 " <arg direction=\"in\" type=\"s\"/>\n"
57 " <arg direction=\"out\" type=\"a{sv}\"/>\n"
59 " <signal name=\"PropertiesChanged\">\n"
60 " <arg type=\"s\"/>\n"
61 " <arg type=\"a{sv}\"/>\n"
62 " <arg type=\"as\"/>\n"
65 " <interface name=\"org.mpris.MediaPlayer2\">\n"
66 " <property name=\"Identity\" type=\"s\" access=\"read\" />\n"
67 " <property name=\"DesktopEntry\" type=\"s\" access=\"read\" />\n"
68 " <property name=\"SupportedMimeTypes\" type=\"as\" access=\"read\" />\n"
69 " <property name=\"SupportedUriSchemes\" type=\"as\" access=\"read\" />\n"
70 " <property name=\"HasTrackList\" type=\"b\" access=\"read\" />\n"
71 " <property name=\"CanQuit\" type=\"b\" access=\"read\" />\n"
72 " <property name=\"CanSetFullscreen\" type=\"b\" access=\"read\" />\n"
73 " <property name=\"Fullscreen\" type=\"b\" access=\"readwrite\" />\n"
74 " <property name=\"CanRaise\" type=\"b\" access=\"read\" />\n"
75 " <method name=\"Quit\" />\n"
76 " <method name=\"Raise\" />\n"
78 " <interface name=\"org.mpris.MediaPlayer2.Player\">\n"
79 " <property name=\"Metadata\" type=\"a{sv}\" access=\"read\" />\n"
80 " <property name=\"PlaybackStatus\" type=\"s\" access=\"read\" />\n"
81 " <property name=\"LoopStatus\" type=\"s\" access=\"readwrite\" />\n"
82 " <property name=\"Volume\" type=\"d\" access=\"readwrite\" />\n"
83 " <property name=\"Shuffle\" type=\"d\" access=\"readwrite\" />\n"
84 " <property name=\"Position\" type=\"i\" access=\"read\" />\n"
85 " <property name=\"Rate\" type=\"d\" access=\"readwrite\" />\n"
86 " <property name=\"MinimumRate\" type=\"d\" access=\"readwrite\" />\n"
87 " <property name=\"MaximumRate\" type=\"d\" access=\"readwrite\" />\n"
88 " <property name=\"CanControl\" type=\"b\" access=\"read\" />\n"
89 " <property name=\"CanPlay\" type=\"b\" access=\"read\" />\n"
90 " <property name=\"CanPause\" type=\"b\" access=\"read\" />\n"
91 " <property name=\"CanSeek\" type=\"b\" access=\"read\" />\n"
92 " <method name=\"Previous\" />\n"
93 " <method name=\"Next\" />\n"
94 " <method name=\"Stop\" />\n"
95 " <method name=\"Play\" />\n"
96 " <method name=\"Pause\" />\n"
97 " <method name=\"PlayPause\" />\n"
98 " <method name=\"Seek\">\n"
99 " <arg type=\"x\" direction=\"in\" />\n"
101 " <method name=\"OpenUri\">\n"
102 " <arg type=\"s\" direction=\"in\" />\n"
104 " <method name=\"SetPosition\">\n"
105 " <arg type=\"o\" direction=\"in\" />\n"
106 " <arg type=\"x\" direction=\"in\" />\n"
109 " <interface name=\"org.mpris.MediaPlayer2.TrackList\">\n"
110 " <property name=\"Tracks\" type=\"ao\" access=\"read\" />\n"
111 " <property name=\"CanEditTracks\" type=\"b\" access=\"read\" />\n"
112 " <method name=\"GetTracksMetadata\">\n"
113 " <arg type=\"ao\" direction=\"in\" />\n"
114 " <arg type=\"aa{sv}\" direction=\"out\" />\n"
116 " <method name=\"AddTrack\">\n"
117 " <arg type=\"s\" direction=\"in\" />\n"
118 " <arg type=\"o\" direction=\"in\" />\n"
119 " <arg type=\"b\" direction=\"in\" />\n"
121 " <method name=\"RemoveTrack\">\n"
122 " <arg type=\"o\" direction=\"in\" />\n"
124 " <method name=\"GoTo\">\n"
125 " <arg type=\"o\" direction=\"in\" />\n"
127 " <signal name=\"TrackListReplaced\">\n"
128 " <arg type=\"ao\" />\n"
129 " <arg type=\"o\" />\n"
131 " <signal name=\"TrackAdded\">\n"
132 " <arg type=\"a{sv}\" />\n"
133 " <arg type=\"o\" />\n"
135 " <signal name=\"TrackRemoved\">\n"
136 " <arg type=\"o\" />\n"
138 " <signal name=\"TrackMetadataChanged\">\n"
139 " <arg type=\"o\" />\n"
140 " <arg type=\"a{sv}\" />\n"
146 /* Handle incoming dbus messages */
147 DBUS_METHOD( handle_introspect )
152 ADD_STRING( &psz_introspection_xml );
156 #endif //dbus-introspect.h