1 /*****************************************************************************
2 * dbus-player.h : dbus control module (mpris v1.0) - /Player object
3 *****************************************************************************
4 * Copyright © 2006-2008 Rafaël Carré
5 * Copyright © 2007-2010 Mirsal Ennaime
6 * Copyright © 2009-2010 The VideoLAN team
9 * Authors: Mirsal Ennaime <mirsal at mirsal fr>
10 * Rafaël Carré <funman at videolanorg>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 *****************************************************************************/
27 #ifndef _VLC_DBUS_PLAYER_H
28 #define _VLC_DBUS_PLAYER_H
30 #include <vlc_interface.h>
31 #include "dbus_common.h"
33 #define DBUS_MPRIS_PLAYER_INTERFACE "org.freedesktop.MediaPlayer"
34 #define DBUS_MPRIS_PLAYER_PATH "/Player"
36 /* Handle incoming dbus messages */
37 DBusHandlerResult handle_player ( DBusConnection *p_conn,
41 static const DBusObjectPathVTable dbus_mpris_player_vtable = {
42 NULL, handle_player, /* handler function */
43 NULL, NULL, NULL, NULL
46 /* GetCaps() capabilities */
50 CAPS_CAN_GO_NEXT = 1 << 0,
51 CAPS_CAN_GO_PREV = 1 << 1,
52 CAPS_CAN_PAUSE = 1 << 2,
53 CAPS_CAN_PLAY = 1 << 3,
54 CAPS_CAN_SEEK = 1 << 4,
55 CAPS_CAN_PROVIDE_METADATA = 1 << 5,
56 CAPS_CAN_HAS_TRACKLIST = 1 << 6
59 int StatusChangeEmit ( intf_thread_t * );
60 int CapsChangeEmit ( intf_thread_t * );
61 int TrackChangeEmit ( intf_thread_t *, input_item_t * );
63 #endif //dbus_player.h