libmpd
0.20.0
Main Page
Modules
Data Structures
Files
Examples
File List
Globals
libmpd-player.h
Go to the documentation of this file.
1
/* libmpd (high level libmpdclient library)
2
* Copyright (C) 2004-2009 Qball Cow <qball@sarine.nl>
3
* Project homepage: http://gmpcwiki.sarine.nl/
4
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
26
/* @{*/
27
#ifndef __MPD_LIB_PLAYER__
28
#define __MPD_LIB_PLAYER__
29
34
typedef
enum
{
36
MPD_PLAYER_PAUSE
=
MPD_STATUS_STATE_PAUSE
,
38
MPD_PLAYER_PLAY
=
MPD_STATUS_STATE_PLAY
,
40
MPD_PLAYER_STOP
=
MPD_STATUS_STATE_STOP
,
42
MPD_PLAYER_UNKNOWN
=
MPD_STATUS_STATE_UNKNOWN
43
}
MpdState
;
44
57
int
mpd_player_play
(
MpdObj
* mi);
58
59
69
int
mpd_player_play_id
(
MpdObj
* mi,
int
id
);
70
71
79
int
mpd_player_stop
(
MpdObj
* mi);
80
81
89
int
mpd_player_next
(
MpdObj
* mi);
90
91
99
int
mpd_player_prev
(
MpdObj
* mi);
100
101
109
int
mpd_player_pause
(
MpdObj
* mi);
110
111
119
int
mpd_player_get_state
(
MpdObj
* mi);
120
128
int
mpd_player_get_current_song_id
(
MpdObj
* mi);
129
130
138
int
mpd_player_get_current_song_pos
(
MpdObj
* mi);
139
140
148
int
mpd_player_get_repeat
(
MpdObj
* mi);
149
157
int
mpd_player_get_consume
(
MpdObj
* mi);
158
166
int
mpd_player_get_single
(
MpdObj
* mi);
167
176
int
mpd_player_set_repeat
(
MpdObj
* mi,
int
repeat);
185
int
mpd_player_get_random
(
MpdObj
* mi);
194
int
mpd_player_set_random
(
MpdObj
* mi,
int
random);
195
196
204
int
mpd_player_seek
(
MpdObj
* mi,
int
sec);
205
206
207
208
int
mpd_player_get_next_song_pos
(
MpdObj
*mi);
209
int
mpd_player_get_next_song_id
(
MpdObj
*mi);
217
int
mpd_player_set_single
(
MpdObj
* mi,
int
single);
218
225
int
mpd_player_set_consume
(
MpdObj
* mi,
int
consume);
226
227
#endif
228
229
Copyright 2006
Qball Cow