player.h

Go to the documentation of this file.
00001 /*
00002  * UPnP Browser for Maemo (player part)
00003  *
00004  * player.h
00005  *
00006  * Copyright 2005 Nokia Corporation
00007  */
00008 
00009 #ifndef _PLAYER_H_
00010 #define _PLAYER_H_
00011 
00012 #include <glib.h>
00013 #include <libosso.h>
00014 
00021 #define PLAYER_VOLUME_MODIFIER 100.0
00022 
00029 #define PLAYER_DBUS_ENGINE_INTERFACE_NAME "com.nokia.osso_media_server.music"
00030 
00036 #define PLAYER_DBUS_ENGINE_OBJECT_NAME "/com/nokia/osso_media_server"
00037 
00043 #define PLAYER_DBUS_ENGINE_SERVICE_NAME "com.nokia.osso_media_server"
00044 
00050 #define PLAYER_DBUS_ENGINE_INTERFACE_ERROR_NAME "com.nokia.osso_media_server"\
00051                                                 ".music.error"
00052 
00059 #define PLAYER_DBUS_MUSIC_PLAYER_ERROR "com.nokia.osso_music_player.error"
00060 
00061 #define PLAYER_PLAY_TIMEOUT 10
00062 
00063 gboolean player_play_uri(osso_context_t *osso, const gchar *uri, GError **err);
00064 
00065 gboolean player_stop(osso_context_t *osso, GError **err);
00066 
00067 gboolean player_pause(osso_context_t *osso, GError **err);
00068 
00069 gboolean player_set_mute(osso_context_t *osso, gboolean muted, GError **err);
00070 
00071 gboolean player_set_volume(osso_context_t *osso, gint value, GError **err);
00072 
00073 gboolean player_get_position(osso_context_t *osso, gint *pos, gint *length, GError **err);
00074 
00075 #endif /* _PLAYER_H_ */

Generated on Mon Aug 14 10:23:32 2006 for CyberLinkC-AV by  doxygen 1.4.6