Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
dbus.h
Go to the documentation of this file.
00001 /*
00002  * Audacious: A cross-platform multimedia player
00003  * Copyright (c) 2007 Ben Tucker
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; under version 3 of the License.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program.  If not, see <http://www.gnu.org/licenses>.
00016  *
00017  * The Audacious team does not consider modular code linking to
00018  * Audacious or using our public API to be a derived work.
00019  */
00020 
00021 #ifndef AUDACIOUS_DBUS_H
00022 #define AUDACIOUS_DBUS_H
00023 
00024 #include <dbus/dbus-glib.h>
00025 
00026 #define AUDACIOUS_DBUS_SERVICE      "org.atheme.audacious"
00027 #define AUDACIOUS_DBUS_PATH         "/org/atheme/audacious"
00028 #define AUDACIOUS_DBUS_INTERFACE    "org.atheme.audacious"
00029 #define AUDACIOUS_DBUS_SERVICE_MPRIS    "org.mpris.audacious"
00030 #define AUDACIOUS_DBUS_INTERFACE_MPRIS  "org.freedesktop.MediaPlayer"
00031 #define AUDACIOUS_DBUS_PATH_MPRIS_ROOT      "/"
00032 #define AUDACIOUS_DBUS_PATH_MPRIS_PLAYER    "/Player"
00033 #define AUDACIOUS_DBUS_PATH_MPRIS_TRACKLIST "/TrackList"
00034 
00035 #define NONE                  = 0
00036 #define CAN_GO_NEXT           = 1 << 0
00037 #define CAN_GO_PREV           = 1 << 1
00038 #define CAN_PAUSE             = 1 << 2
00039 #define CAN_PLAY              = 1 << 3
00040 #define CAN_SEEK              = 1 << 4
00041 #define CAN_RESTORE_CONTEXT   = 1 << 5
00042 #define CAN_PROVIDE_METADATA  = 1 << 6
00043 #define PROVIDES_TIMING       = 1 << 7
00044 
00045 void init_dbus (void);
00046 void cleanup_dbus (void);
00047 DBusGProxy * audacious_get_dbus_proxy (void);
00048 
00049 #endif /* AUDACIOUS_DBUS_H */