libmpdclient 2.22
player.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2// Copyright The Music Player Daemon Project
3
12#ifndef MPD_PLAYER_H
13#define MPD_PLAYER_H
14
15#include "compiler.h"
16#include "status.h"
17
18#include <stdbool.h>
19
20struct mpd_connection;
21struct mpd_song;
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
52bool
54
62mpd_malloc
63struct mpd_song *
65
72bool
73mpd_send_play(struct mpd_connection *connection);
74
81bool
82mpd_run_play(struct mpd_connection *connection);
83
91bool
92mpd_send_play_pos(struct mpd_connection *connection, unsigned song_pos);
93
101bool
102mpd_run_play_pos(struct mpd_connection *connection, unsigned song_pos);
103
111bool
112mpd_send_play_id(struct mpd_connection *connection, unsigned song_id);
113
121bool
122mpd_run_play_id(struct mpd_connection *connection, unsigned song_id);
123
130bool
131mpd_send_stop(struct mpd_connection *connection);
132
139bool
140mpd_run_stop(struct mpd_connection *connection);
141
150bool
152
160bool
162
171bool
172mpd_send_pause(struct mpd_connection *connection, bool mode);
173
181bool
182mpd_run_pause(struct mpd_connection *connection, bool mode);
183
190bool
191mpd_send_next(struct mpd_connection *connection);
192
199bool
200mpd_run_next(struct mpd_connection *connection);
201
208bool
210
217bool
219
228bool
230 unsigned song_pos, unsigned t);
231
240bool
242 unsigned song_pos, unsigned t);
243
252bool
254 unsigned song_id, unsigned t);
255
264bool
266 unsigned song_id, unsigned t);
267
276bool
278 unsigned song_id, float t);
279
288bool
290 unsigned song_id, float t);
291
302bool
304 float t, bool relative);
305
317bool
319 float t, bool relative);
320
330bool
331mpd_send_repeat(struct mpd_connection *connection, bool mode);
332
340bool
341mpd_run_repeat(struct mpd_connection *connection, bool mode);
342
352bool
353mpd_send_random(struct mpd_connection *connection, bool mode);
354
362bool
363mpd_run_random(struct mpd_connection *connection, bool mode);
364
383bool
385 enum mpd_single_state state);
386
396bool
398 enum mpd_single_state state);
399
417bool
418mpd_send_single(struct mpd_connection *connection, bool mode);
419
429bool
430mpd_run_single(struct mpd_connection *connection, bool mode);
431
448bool
449mpd_send_consume(struct mpd_connection *connection, bool mode);
450
460bool
461mpd_run_consume(struct mpd_connection *connection, bool mode);
462
479bool
481
491bool
493
502bool
503mpd_send_crossfade(struct mpd_connection *connection, unsigned seconds);
504
512bool
513mpd_run_crossfade(struct mpd_connection *connection, unsigned seconds);
514
529bool
530mpd_send_mixrampdb(struct mpd_connection *connection, float db);
531
541bool
542mpd_run_mixrampdb(struct mpd_connection *connection, float db);
543
554bool
555mpd_send_mixrampdelay(struct mpd_connection *connection, float seconds);
556
566bool
567mpd_run_mixrampdelay(struct mpd_connection *connection, float seconds);
568
578bool
580
589bool
591
592#ifdef __cplusplus
593}
594#endif
595
596#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:39
mpd_consume_state
Definition status.h:64