libmpd 0.19.0
|
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 00157 int mpd_player_get_consume(MpdObj * mi); 00158 00166 int mpd_player_get_single(MpdObj * mi); 00167 00176 int mpd_player_set_repeat(MpdObj * mi, int repeat); 00185 int mpd_player_get_random(MpdObj * mi); 00194 int mpd_player_set_random(MpdObj * mi, int random); 00195 00196 00204 int mpd_player_seek(MpdObj * mi, int sec); 00205 00206 00207 00208 int mpd_player_get_next_song_pos(MpdObj *mi); 00209 int mpd_player_get_next_song_id(MpdObj *mi); 00217 int mpd_player_set_single(MpdObj * mi, int single); 00218 00225 int mpd_player_set_consume(MpdObj * mi, int consume); 00226 00227 #endif 00228 00229