00001 /* Copyright 2009 (c) ENSI de Bourges 00002 * 88 boulevard Lahitolle, 18020 Bourges Cedex, France 00003 * 00004 * This program is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 3 of the License, or 00007 * (at your option) any later version. 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 */ 00024 #ifndef __LOG_PLAYER_DBUS_H 00025 #define __LOG_PLAYER_DBUS_H 00026 #ifdef __cplusplus 00027 extern "C" { 00028 #endif 00029 #include <dbus/dbus-glib-bindings.h> 00030 #include <glib.h> 00031 00032 #include "log-player-dbus-methods.h" 00033 00034 00035 00036 void player_dbus_playback_ended_callback (DBusGProxy *proxy, gpointer user_data); 00037 00038 void player_dbus_date_being_played_callback (DBusGProxy *, guint64, gpointer); 00039 00040 gboolean player_dbus_set_speed (double speed); 00041 00042 gboolean player_dbus_get_speed (double *speed); 00043 00044 gboolean player_dbus_get_start_date (guint64 *date); 00045 00046 gboolean player_dbus_get_duration (guint64 *duration); 00047 00048 gboolean player_dbus_get_state (gboolean *started, gboolean *paused); 00049 00050 gboolean player_dbus_stop (); 00051 00052 gboolean player_dbus_set_paused (gboolean paused); 00053 00054 gboolean player_dbus_start (guint64 start_date, guint64 duration); 00055 00056 gboolean player_dbus_try_ping (gboolean set_values); 00057 00058 gboolean player_dbus_connect (DBusGConnection **, DBusGProxy **); 00059 #ifdef __cplusplus 00060 } 00061 #endif 00062 #endif