libmpdclient 2.22
player.h
Go to the documentation of this file.
1/* libmpdclient
2 (c) 2003-2019 The Music Player Daemon Project
3 This project's homepage is: http://www.musicpd.org
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8
9 - Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer.
11
12 - Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
20 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27*/
28
37#ifndef MPD_PLAYER_H
38#define MPD_PLAYER_H
39
40#include "compiler.h"
41#include "status.h"
42
43#include <stdbool.h>
44
45struct mpd_connection;
46struct mpd_song;
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
77bool
79
87mpd_malloc
88struct mpd_song *
90
97bool
98mpd_send_play(struct mpd_connection *connection);
99
106bool
107mpd_run_play(struct mpd_connection *connection);
108
116bool
117mpd_send_play_pos(struct mpd_connection *connection, unsigned song_pos);
118
126bool
127mpd_run_play_pos(struct mpd_connection *connection, unsigned song_pos);
128
136bool
137mpd_send_play_id(struct mpd_connection *connection, unsigned song_id);
138
146bool
147mpd_run_play_id(struct mpd_connection *connection, unsigned song_id);
148
155bool
156mpd_send_stop(struct mpd_connection *connection);
157
164bool
165mpd_run_stop(struct mpd_connection *connection);
166
175bool
177
185bool
187
196bool
197mpd_send_pause(struct mpd_connection *connection, bool mode);
198
206bool
207mpd_run_pause(struct mpd_connection *connection, bool mode);
208
215bool
216mpd_send_next(struct mpd_connection *connection);
217
224bool
225mpd_run_next(struct mpd_connection *connection);
226
233bool
235
242bool
244
253bool
255 unsigned song_pos, unsigned t);
256
265bool
267 unsigned song_pos, unsigned t);
268
277bool
279 unsigned song_id, unsigned t);
280
289bool
291 unsigned song_id, unsigned t);
292
301bool
303 unsigned song_id, float t);
304
313bool
315 unsigned song_id, float t);
316
327bool
329 float t, bool relative);
330
342bool
344 float t, bool relative);
345
355bool
356mpd_send_repeat(struct mpd_connection *connection, bool mode);
357
365bool
366mpd_run_repeat(struct mpd_connection *connection, bool mode);
367
377bool
378mpd_send_random(struct mpd_connection *connection, bool mode);
379
387bool
388mpd_run_random(struct mpd_connection *connection, bool mode);
389
408bool
410 enum mpd_single_state state);
411
421bool
423 enum mpd_single_state state);
424
442bool
443mpd_send_single(struct mpd_connection *connection, bool mode);
444
454bool
455mpd_run_single(struct mpd_connection *connection, bool mode);
456
473bool
474mpd_send_consume(struct mpd_connection *connection, bool mode);
475
485bool
486mpd_run_consume(struct mpd_connection *connection, bool mode);
487
504bool
506
516bool
518
527bool
528mpd_send_crossfade(struct mpd_connection *connection, unsigned seconds);
529
537bool
538mpd_run_crossfade(struct mpd_connection *connection, unsigned seconds);
539
554bool
555mpd_send_mixrampdb(struct mpd_connection *connection, float db);
556
566bool
567mpd_run_mixrampdb(struct mpd_connection *connection, float db);
568
579bool
580mpd_send_mixrampdelay(struct mpd_connection *connection, float seconds);
581
591bool
592mpd_run_mixrampdelay(struct mpd_connection *connection, float seconds);
593
603bool
605
614bool
616
617#ifdef __cplusplus
618}
619#endif
620
621#endif
bool mpd_send_stop(struct mpd_connection *connection)
bool mpd_send_repeat(struct mpd_connection *connection, bool mode)
bool mpd_send_mixrampdb(struct mpd_connection *connection, float db)
bool mpd_run_seek_current(struct mpd_connection *connection, float t, bool relative)
bool mpd_run_single(struct mpd_connection *connection, bool mode)
bool mpd_send_seek_pos(struct mpd_connection *connection, unsigned song_pos, unsigned t)
bool mpd_run_play_pos(struct mpd_connection *connection, unsigned song_pos)
bool mpd_send_current_song(struct mpd_connection *connection)
struct mpd_song * mpd_run_current_song(struct mpd_connection *connection)
bool mpd_run_consume(struct mpd_connection *connection, bool mode)
bool mpd_send_play_id(struct mpd_connection *connection, unsigned song_id)
bool mpd_send_random(struct mpd_connection *connection, bool mode)
bool mpd_run_crossfade(struct mpd_connection *connection, unsigned seconds)
bool mpd_send_play_pos(struct mpd_connection *connection, unsigned song_pos)
bool mpd_send_seek_id_float(struct mpd_connection *connection, unsigned song_id, float t)
bool mpd_run_single_state(struct mpd_connection *connection, enum mpd_single_state state)
bool mpd_run_next(struct mpd_connection *connection)
bool mpd_run_clearerror(struct mpd_connection *connection)
bool mpd_run_pause(struct mpd_connection *connection, bool mode)
bool mpd_send_previous(struct mpd_connection *connection)
bool mpd_send_crossfade(struct mpd_connection *connection, unsigned seconds)
bool mpd_run_seek_id(struct mpd_connection *connection, unsigned song_id, unsigned t)
bool mpd_send_mixrampdelay(struct mpd_connection *connection, float seconds)
bool mpd_send_single(struct mpd_connection *connection, bool mode)
bool mpd_run_toggle_pause(struct mpd_connection *connection)
bool mpd_send_seek_id(struct mpd_connection *connection, unsigned song_id, unsigned t)
bool mpd_send_clearerror(struct mpd_connection *connection)
bool mpd_send_consume(struct mpd_connection *connection, bool mode)
bool mpd_send_play(struct mpd_connection *connection)
bool mpd_run_previous(struct mpd_connection *connection)
bool mpd_run_stop(struct mpd_connection *connection)
bool mpd_send_toggle_pause(struct mpd_connection *connection)
bool mpd_run_seek_id_float(struct mpd_connection *connection, unsigned song_id, float t)
bool mpd_run_mixrampdelay(struct mpd_connection *connection, float seconds)
bool mpd_run_consume_state(struct mpd_connection *connection, enum mpd_consume_state state)
bool mpd_run_seek_pos(struct mpd_connection *connection, unsigned song_pos, unsigned t)
bool mpd_run_random(struct mpd_connection *connection, bool mode)
bool mpd_send_seek_current(struct mpd_connection *connection, float t, bool relative)
bool mpd_run_repeat(struct mpd_connection *connection, bool mode)
bool mpd_run_play_id(struct mpd_connection *connection, unsigned song_id)
bool mpd_send_consume_state(struct mpd_connection *connection, enum mpd_consume_state state)
bool mpd_send_pause(struct mpd_connection *connection, bool mode)
bool mpd_run_mixrampdb(struct mpd_connection *connection, float db)
bool mpd_run_play(struct mpd_connection *connection)
bool mpd_send_single_state(struct mpd_connection *connection, enum mpd_single_state state)
bool mpd_send_next(struct mpd_connection *connection)
MPD client library.
mpd_single_state
Definition: status.h:68
mpd_consume_state
Definition: status.h:93