Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
dbus.h
Go to the documentation of this file.
1 /*
2  * dbus.h
3  * Copyright 2007 Ben Tucker
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions, and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions, and the following disclaimer in the documentation
13  * provided with the distribution.
14  *
15  * This software is provided "as is" and without any warranty, express or
16  * implied. In no event shall the authors be liable for any damages arising from
17  * the use of this software.
18  */
19 
20 #ifndef AUDACIOUS_DBUS_H
21 #define AUDACIOUS_DBUS_H
22 
23 #include <dbus/dbus-glib.h>
24 
25 #define AUDACIOUS_DBUS_SERVICE "org.atheme.audacious"
26 #define AUDACIOUS_DBUS_PATH "/org/atheme/audacious"
27 #define AUDACIOUS_DBUS_INTERFACE "org.atheme.audacious"
28 #define AUDACIOUS_DBUS_SERVICE_MPRIS "org.mpris.audacious"
29 #define AUDACIOUS_DBUS_INTERFACE_MPRIS "org.freedesktop.MediaPlayer"
30 #define AUDACIOUS_DBUS_PATH_MPRIS_ROOT "/"
31 #define AUDACIOUS_DBUS_PATH_MPRIS_PLAYER "/Player"
32 #define AUDACIOUS_DBUS_PATH_MPRIS_TRACKLIST "/TrackList"
33 
34 #define NONE = 0
35 #define CAN_GO_NEXT = 1 << 0
36 #define CAN_GO_PREV = 1 << 1
37 #define CAN_PAUSE = 1 << 2
38 #define CAN_PLAY = 1 << 3
39 #define CAN_SEEK = 1 << 4
40 #define CAN_RESTORE_CONTEXT = 1 << 5
41 #define CAN_PROVIDE_METADATA = 1 << 6
42 #define PROVIDES_TIMING = 1 << 7
43 
44 void init_dbus (void);
45 void cleanup_dbus (void);
46 DBusGProxy * audacious_get_dbus_proxy (void);
47 
48 #endif /* AUDACIOUS_DBUS_H */
void cleanup_dbus(void)
Definition: dbus.c:198
DBusGProxy * audacious_get_dbus_proxy(void)
Definition: dbus.c:1042
void init_dbus(void)
Definition: dbus.c:172