]> git.sesse.net Git - vlc/blob - modules/control/dbus/dbus_root.h
dbus: Fix memleak and remove warnings
[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 at mirsal fr>
10  *             Rafaël Carré <funman at videolanorg>
11  *
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.
16  *
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.
21  *
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  *****************************************************************************/
26
27 #ifndef _VLC_DBUS_ROOT_H
28 #define _VLC_DBUS_ROOT_H
29
30 #include "dbus_common.h"
31
32 #define VLC_IDENTITY _("VLC media player")
33
34 /* DBUS IDENTIFIERS */
35 #define DBUS_MPRIS_ROOT_INTERFACE    "org.mpris.MediaPlayer2"
36
37 /* Handle incoming dbus messages */
38 DBusHandlerResult handle_root ( DBusConnection *p_conn,
39                                 DBusMessage *p_from,
40                                 void *p_this );
41
42 static const char* ppsz_supported_uri_schemes[] = {
43     "file", "http", "https", "rtsp", "realrtsp", "pnm", "ftp", "mtp", "smb",
44     "mms", "mmsu", "mmst", "mmsh", "unsv", "itpc", "icyx", "rtmp", "rtp",
45     "dccp", "dvd", "vcd", "vcdx"
46 };
47
48 static const char* ppsz_supported_mime_types[] = {
49     "audio/mpeg", "audio/x-mpeg",
50     "video/mpeg", "video/x-mpeg",
51     "video/mpeg-system", "video/x-mpeg-system",
52     "video/mp4",
53     "audio/mp4",
54     "video/x-msvideo",
55     "video/quicktime",
56     "application/ogg", "application/x-ogg",
57     "video/x-ms-asf",  "video/x-ms-asf-plugin",
58     "application/x-mplayer2",
59     "video/x-ms-wmv",
60     "video/x-google-vlc-plugin",
61     "audio/wav", "audio/x-wav",
62     "audio/3gpp",
63     "video/3gpp",
64     "audio/3gpp2",
65     "video/3gpp2",
66     "video/divx",
67     "video/flv", "video/x-flv",
68     "video/x-matroska",
69     "audio/x-matroska",
70     "application/xspf+xml"
71 };
72
73 void UpdateRootCaps( intf_thread_t *p_intf );
74
75 #endif //dbus-root.h