libmpd-player.h

Go to the documentation of this file.
00001 /* libmpd (high level libmpdclient library)
00002  * Copyright (C) 2004-2009 Qball Cow <qball@sarine.nl>
00003  * Project homepage: http://gmpcwiki.sarine.nl/
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; either version 2 of the License, or
00008  * (at your option) any later version.
00009 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014 
00015  * You should have received a copy of the GNU General Public License along
00016  * with this program; if not, write to the Free Software Foundation, Inc.,
00017  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00018 */
00019 
00026 /* @{*/
00027 #ifndef __MPD_LIB_PLAYER__
00028 #define __MPD_LIB_PLAYER__
00029 
00034 typedef enum {
00036         MPD_PLAYER_PAUSE = MPD_STATUS_STATE_PAUSE,      
00038         MPD_PLAYER_PLAY =  MPD_STATUS_STATE_PLAY,
00040         MPD_PLAYER_STOP =  MPD_STATUS_STATE_STOP,
00042         MPD_PLAYER_UNKNOWN = MPD_STATUS_STATE_UNKNOWN
00043 } MpdState;
00044 
00057 int mpd_player_play(MpdObj * mi);
00058 
00059 
00069 int mpd_player_play_id(MpdObj * mi, int id);
00070 
00071 
00079 int mpd_player_stop(MpdObj * mi);
00080 
00081 
00089 int mpd_player_next(MpdObj * mi);
00090 
00091 
00099 int mpd_player_prev(MpdObj * mi);
00100 
00101 
00109 int mpd_player_pause(MpdObj * mi);
00110 
00111 
00119 int mpd_player_get_state(MpdObj * mi);
00120 
00128 int mpd_player_get_current_song_id(MpdObj * mi);
00129 
00130 
00138 int mpd_player_get_current_song_pos(MpdObj * mi);
00139 
00140 
00148 int mpd_player_get_repeat(MpdObj * mi);
00149 
00150 
00159 int mpd_player_set_repeat(MpdObj * mi, int repeat);
00168 int mpd_player_get_random(MpdObj * mi);
00177 int mpd_player_set_random(MpdObj * mi, int random);
00178 
00179 
00187 int mpd_player_seek(MpdObj * mi, int sec);
00188 
00189 #endif
00190 

Copyright 2006 Qball Cow