libmpdclient 2.22
queue.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_QUEUE_H
13#define MPD_QUEUE_H
14
15#include "compiler.h"
16#include "position.h"
17#include "tag.h"
18
19#include <stdbool.h>
20
21struct mpd_connection;
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
40bool
42
55bool
57 unsigned start, unsigned end);
58
67bool
68mpd_send_get_queue_song_pos(struct mpd_connection *connection, unsigned pos);
69
77mpd_malloc
78struct mpd_song *
79mpd_run_get_queue_song_pos(struct mpd_connection *connection, unsigned pos);
80
89bool
90mpd_send_get_queue_song_id(struct mpd_connection *connection, unsigned id);
91
99mpd_malloc
100struct mpd_song *
101mpd_run_get_queue_song_id(struct mpd_connection *connection, unsigned id);
102
114bool
116 unsigned version);
117
134bool
136 unsigned version,
137 unsigned start, unsigned end);
138
150bool
152 unsigned version);
153
169bool
171 unsigned version,
172 unsigned start, unsigned end);
173
184bool
186 unsigned *position_r, unsigned *id_r);
187
195bool
196mpd_send_add(struct mpd_connection *connection, const char *uri);
197
205bool
206mpd_run_add(struct mpd_connection *connection, const char *uri);
207
219bool
220mpd_send_add_whence(struct mpd_connection *connection, const char *uri,
221 unsigned to, enum mpd_position_whence whence);
222
234bool
235mpd_run_add_whence(struct mpd_connection *connection, const char *uri,
236 unsigned to, enum mpd_position_whence whence);
237
246bool
247mpd_send_add_id(struct mpd_connection *connection, const char *uri);
248
258bool
259mpd_send_add_id_to(struct mpd_connection *connection, const char *uri,
260 unsigned to);
261
274bool
275mpd_send_add_id_whence(struct mpd_connection *connection, const char *uri,
276 unsigned to, enum mpd_position_whence whence);
277
285int
287
296int
297mpd_run_add_id(struct mpd_connection *connection, const char *uri);
298
308int
309mpd_run_add_id_to(struct mpd_connection *connection, const char *uri,
310 unsigned to);
311
324int
325mpd_run_add_id_whence(struct mpd_connection *connection, const char *uri,
326 unsigned to, enum mpd_position_whence whence);
327
335bool
336mpd_send_delete(struct mpd_connection *connection, unsigned pos);
337
345bool
346mpd_run_delete(struct mpd_connection *connection, unsigned pos);
347
359bool
361 unsigned start, unsigned end);
362
374bool
376 unsigned start, unsigned end);
377
385bool
386mpd_send_delete_id(struct mpd_connection *connection, unsigned id);
387
395bool
396mpd_run_delete_id(struct mpd_connection *connection, unsigned id);
397
404bool
406
413bool
414mpd_run_shuffle(struct mpd_connection *connection);
415
427bool
429 unsigned start, unsigned end);
430
442bool
444 unsigned start, unsigned end);
445
452bool
453mpd_send_clear(struct mpd_connection *connection);
454
461bool
462mpd_run_clear(struct mpd_connection *connection);
463
472bool
473mpd_send_move(struct mpd_connection *connection, unsigned from, unsigned to);
474
483bool
484mpd_run_move(struct mpd_connection *connection, unsigned from, unsigned to);
485
497bool
498mpd_send_move_whence(struct mpd_connection *connection, unsigned from,
499 unsigned to, enum mpd_position_whence whence);
500
512bool
513mpd_run_move_whence(struct mpd_connection *connection, unsigned from,
514 unsigned to, enum mpd_position_whence whence);
515
524bool
525mpd_send_move_id(struct mpd_connection *connection, unsigned from, unsigned to);
526
535bool
536mpd_run_move_id(struct mpd_connection *connection, unsigned from, unsigned to);
537
549bool
550mpd_send_move_id_whence(struct mpd_connection *connection, unsigned from,
551 unsigned to, enum mpd_position_whence whence);
552
564bool
565mpd_run_move_id_whence(struct mpd_connection *connection, unsigned from,
566 unsigned to, enum mpd_position_whence whence);
567
580bool
582 unsigned start, unsigned end, unsigned to);
583
596bool
598 unsigned start, unsigned end, unsigned to);
599
613bool
614mpd_send_move_range_whence(struct mpd_connection *connection, unsigned start,
615 unsigned end, unsigned to, enum mpd_position_whence whence);
616
630bool
631mpd_run_move_range_whence(struct mpd_connection *connection, unsigned start,
632 unsigned end, unsigned to, enum mpd_position_whence whence);
633
642bool
643mpd_send_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2);
644
653bool
654mpd_run_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2);
655
664bool
665mpd_send_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2);
666
675bool
676mpd_run_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2);
677
689bool
690mpd_send_add_tag_id(struct mpd_connection *connection, unsigned id,
691 enum mpd_tag_type tag, const char *value);
692
704bool
705mpd_run_add_tag_id(struct mpd_connection *connection, unsigned id,
706 enum mpd_tag_type tag, const char *value);
707
718bool
719mpd_send_clear_tag_id(struct mpd_connection *connection, unsigned id,
720 enum mpd_tag_type tag);
721
732bool
733mpd_run_clear_tag_id(struct mpd_connection *connection, unsigned id,
734 enum mpd_tag_type tag);
735
745bool
746mpd_send_clear_all_tags_id(struct mpd_connection *connection, unsigned id);
747
757bool
758mpd_run_clear_all_tags_id(struct mpd_connection *connection, unsigned id);
759
770bool
771mpd_send_prio(struct mpd_connection *connection, unsigned priority,
772 unsigned position);
773
784bool
785mpd_run_prio(struct mpd_connection *connection, unsigned priority,
786 unsigned position);
787
801bool
802mpd_send_prio_range(struct mpd_connection *connection, unsigned priority,
803 unsigned start, unsigned end);
804
818bool
819mpd_run_prio_range(struct mpd_connection *connection, unsigned priority,
820 unsigned start, unsigned end);
821
832bool
833mpd_send_prio_id(struct mpd_connection *connection, unsigned priority,
834 unsigned id);
835
846bool
847mpd_run_prio_id(struct mpd_connection *connection, unsigned priority,
848 unsigned id);
849
866bool
867mpd_send_range_id(struct mpd_connection *connection, unsigned id,
868 float start, float end);
869
883bool
884mpd_run_range_id(struct mpd_connection *connection, unsigned id,
885 float start, float end);
886#ifdef __cplusplus
887}
888#endif
889
890#endif
MPD client library.
mpd_position_whence
Definition position.h:13
bool mpd_run_move_id_whence(struct mpd_connection *connection, unsigned from, unsigned to, enum mpd_position_whence whence)
bool mpd_run_move(struct mpd_connection *connection, unsigned from, unsigned to)
bool mpd_run_move_whence(struct mpd_connection *connection, unsigned from, unsigned to, enum mpd_position_whence whence)
bool mpd_send_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2)
bool mpd_recv_queue_change_brief(struct mpd_connection *connection, unsigned *position_r, unsigned *id_r)
int mpd_run_add_id_whence(struct mpd_connection *connection, const char *uri, unsigned to, enum mpd_position_whence whence)
bool mpd_send_move_id_whence(struct mpd_connection *connection, unsigned from, unsigned to, enum mpd_position_whence whence)
bool mpd_run_move_range(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to)
bool mpd_send_add_id_to(struct mpd_connection *connection, const char *uri, unsigned to)
bool mpd_run_shuffle_range(struct mpd_connection *connection, unsigned start, unsigned end)
bool mpd_send_prio_id(struct mpd_connection *connection, unsigned priority, unsigned id)
bool mpd_send_add_id(struct mpd_connection *connection, const char *uri)
bool mpd_send_get_queue_song_pos(struct mpd_connection *connection, unsigned pos)
bool mpd_send_get_queue_song_id(struct mpd_connection *connection, unsigned id)
bool mpd_send_prio_range(struct mpd_connection *connection, unsigned priority, unsigned start, unsigned end)
bool mpd_send_shuffle_range(struct mpd_connection *connection, unsigned start, unsigned end)
bool mpd_send_shuffle(struct mpd_connection *connection)
bool mpd_send_list_queue_range_meta(struct mpd_connection *connection, unsigned start, unsigned end)
bool mpd_run_add(struct mpd_connection *connection, const char *uri)
int mpd_run_add_id(struct mpd_connection *connection, const char *uri)
struct mpd_song * mpd_run_get_queue_song_pos(struct mpd_connection *connection, unsigned pos)
bool mpd_run_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2)
bool mpd_send_queue_changes_meta(struct mpd_connection *connection, unsigned version)
int mpd_run_add_id_to(struct mpd_connection *connection, const char *uri, unsigned to)
bool mpd_send_add(struct mpd_connection *connection, const char *uri)
bool mpd_run_delete_id(struct mpd_connection *connection, unsigned id)
bool mpd_send_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2)
bool mpd_send_prio(struct mpd_connection *connection, unsigned priority, unsigned position)
bool mpd_run_add_tag_id(struct mpd_connection *connection, unsigned id, enum mpd_tag_type tag, const char *value)
bool mpd_send_clear(struct mpd_connection *connection)
bool mpd_run_prio(struct mpd_connection *connection, unsigned priority, unsigned position)
int mpd_recv_song_id(struct mpd_connection *connection)
bool mpd_send_delete_range(struct mpd_connection *connection, unsigned start, unsigned end)
bool mpd_send_clear_tag_id(struct mpd_connection *connection, unsigned id, enum mpd_tag_type tag)
bool mpd_run_move_range_whence(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to, enum mpd_position_whence whence)
bool mpd_send_move_whence(struct mpd_connection *connection, unsigned from, unsigned to, enum mpd_position_whence whence)
bool mpd_run_shuffle(struct mpd_connection *connection)
bool mpd_send_delete(struct mpd_connection *connection, unsigned pos)
bool mpd_send_queue_changes_brief(struct mpd_connection *connection, unsigned version)
bool mpd_run_range_id(struct mpd_connection *connection, unsigned id, float start, float end)
bool mpd_run_clear(struct mpd_connection *connection)
bool mpd_send_queue_changes_meta_range(struct mpd_connection *connection, unsigned version, unsigned start, unsigned end)
bool mpd_run_delete_range(struct mpd_connection *connection, unsigned start, unsigned end)
bool mpd_send_move_id(struct mpd_connection *connection, unsigned from, unsigned to)
bool mpd_send_delete_id(struct mpd_connection *connection, unsigned id)
bool mpd_send_move(struct mpd_connection *connection, unsigned from, unsigned to)
struct mpd_song * mpd_run_get_queue_song_id(struct mpd_connection *connection, unsigned id)
bool mpd_run_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2)
bool mpd_run_clear_tag_id(struct mpd_connection *connection, unsigned id, enum mpd_tag_type tag)
bool mpd_send_list_queue_meta(struct mpd_connection *connection)
bool mpd_run_clear_all_tags_id(struct mpd_connection *connection, unsigned id)
bool mpd_send_add_id_whence(struct mpd_connection *connection, const char *uri, unsigned to, enum mpd_position_whence whence)
bool mpd_send_queue_changes_brief_range(struct mpd_connection *connection, unsigned version, unsigned start, unsigned end)
bool mpd_run_prio_id(struct mpd_connection *connection, unsigned priority, unsigned id)
bool mpd_send_range_id(struct mpd_connection *connection, unsigned id, float start, float end)
bool mpd_send_add_whence(struct mpd_connection *connection, const char *uri, unsigned to, enum mpd_position_whence whence)
bool mpd_run_move_id(struct mpd_connection *connection, unsigned from, unsigned to)
bool mpd_send_move_range_whence(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to, enum mpd_position_whence whence)
bool mpd_send_add_tag_id(struct mpd_connection *connection, unsigned id, enum mpd_tag_type tag, const char *value)
bool mpd_send_move_range(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to)
bool mpd_run_prio_range(struct mpd_connection *connection, unsigned priority, unsigned start, unsigned end)
bool mpd_send_clear_all_tags_id(struct mpd_connection *connection, unsigned id)
bool mpd_run_delete(struct mpd_connection *connection, unsigned pos)
bool mpd_run_add_whence(struct mpd_connection *connection, const char *uri, unsigned to, enum mpd_position_whence whence)
mpd_tag_type
Definition tag.h:25