]> git.sesse.net Git - vlc/blob - modules/control/dbus/dbus_root.h
Reorganize the dbus control module code
[vlc] / modules / control / dbus / dbus_root.h
1 /*****************************************************************************
2  * dbus-root.h : dbus control module (mpris v1.0) - root object
3  *****************************************************************************
4  * Copyright © 2006-2008 Rafaël Carré
5  * Copyright © 2007-2010 Mirsal Ennaime
6  * Copyright © 2009-2010 The VideoLAN team
7  * $Id$
8  *
9  * Authors:    Mirsal ENNAIME <mirsal dot ennaime at gmail dot com>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25
26 #ifndef _VLC_DBUS_ROOT_H
27 #define _VLC_DBUS_ROOT_H
28
29 #include "dbus_common.h"
30
31 /* MPRIS VERSION */
32 #define DBUS_MPRIS_VERSION_MAJOR     2
33 #define DBUS_MPRIS_VERSION_MINOR     0
34
35 /* DBUS IDENTIFIERS */
36 #define DBUS_MPRIS_ROOT_INTERFACE    "org.freedesktop.MediaPlayer"
37 #define DBUS_MPRIS_ROOT_PATH         "/"
38
39 /* Handle incoming dbus messages */
40 DBusHandlerResult handle_root ( DBusConnection *p_conn,
41                                 DBusMessage *p_from,
42                                 void *p_this );
43
44 static const DBusObjectPathVTable dbus_mpris_root_vtable = {
45         NULL, handle_root, /* handler function */
46         NULL, NULL, NULL, NULL
47 };
48
49 #endif //dbus-root.h