/*****************************************************************************
- * dbus-root.h : dbus control module (mpris v1.0) - root object
+ * dbus_root.h : dbus control module (mpris v2.2) - Root object
*****************************************************************************
* Copyright © 2006-2008 Rafaël Carré
* Copyright © 2007-2010 Mirsal Ennaime
* Copyright © 2009-2010 The VideoLAN team
- * $Id$
*
* Authors: Mirsal Ennaime <mirsal at mirsal fr>
* Rafaël Carré <funman at videolanorg>
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#ifndef _VLC_DBUS_ROOT_H
-#define _VLC_DBUS_ROOT_H
+#ifndef VLC_DBUS_DBUS_ROOT_H_
+#define VLC_DBUS_DBUS_ROOT_H_
#include "dbus_common.h"
-/* MPRIS VERSION */
-#define DBUS_MPRIS_VERSION_MAJOR 2
-#define DBUS_MPRIS_VERSION_MINOR 0
-
/* DBUS IDENTIFIERS */
-#define DBUS_MPRIS_ROOT_INTERFACE "org.freedesktop.MediaPlayer"
-#define DBUS_MPRIS_ROOT_PATH "/"
+#define DBUS_MPRIS_ROOT_INTERFACE "org.mpris.MediaPlayer2"
/* Handle incoming dbus messages */
DBusHandlerResult handle_root ( DBusConnection *p_conn,
DBusMessage *p_from,
void *p_this );
+int RootPropertiesChangedEmit ( intf_thread_t *,
+ vlc_dictionary_t * );
-static const DBusObjectPathVTable dbus_mpris_root_vtable = {
- NULL, handle_root, /* handler function */
- NULL, NULL, NULL, NULL
-};
-
-#endif //dbus-root.h
+#endif /* include-guard */