Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
dbus.h
Go to the documentation of this file.
1 /*
2  * Audacious: A cross-platform multimedia player
3  * Copyright (c) 2007 Ben Tucker
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; under version 3 of the License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses>.
16  *
17  * The Audacious team does not consider modular code linking to
18  * Audacious or using our public API to be a derived work.
19  */
20 
21 #ifndef AUDACIOUS_DBUS_H
22 #define AUDACIOUS_DBUS_H
23 
24 #include <dbus/dbus-glib.h>
25 
26 #define AUDACIOUS_DBUS_SERVICE "org.atheme.audacious"
27 #define AUDACIOUS_DBUS_PATH "/org/atheme/audacious"
28 #define AUDACIOUS_DBUS_INTERFACE "org.atheme.audacious"
29 #define AUDACIOUS_DBUS_SERVICE_MPRIS "org.mpris.audacious"
30 #define AUDACIOUS_DBUS_INTERFACE_MPRIS "org.freedesktop.MediaPlayer"
31 #define AUDACIOUS_DBUS_PATH_MPRIS_ROOT "/"
32 #define AUDACIOUS_DBUS_PATH_MPRIS_PLAYER "/Player"
33 #define AUDACIOUS_DBUS_PATH_MPRIS_TRACKLIST "/TrackList"
34 
35 #define NONE = 0
36 #define CAN_GO_NEXT = 1 << 0
37 #define CAN_GO_PREV = 1 << 1
38 #define CAN_PAUSE = 1 << 2
39 #define CAN_PLAY = 1 << 3
40 #define CAN_SEEK = 1 << 4
41 #define CAN_RESTORE_CONTEXT = 1 << 5
42 #define CAN_PROVIDE_METADATA = 1 << 6
43 #define PROVIDES_TIMING = 1 << 7
44 
45 void init_dbus (void);
46 void cleanup_dbus (void);
47 DBusGProxy * audacious_get_dbus_proxy (void);
48 
49 #endif /* AUDACIOUS_DBUS_H */