libmpdclient 2.22
queue.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_QUEUE_H
38#define MPD_QUEUE_H
39
40#include "compiler.h"
41#include "position.h"
42#include "tag.h"
43
44#include <stdbool.h>
45
46struct mpd_connection;
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
65bool
67
80bool
82 unsigned start, unsigned end);
83
92bool
93mpd_send_get_queue_song_pos(struct mpd_connection *connection, unsigned pos);
94
102mpd_malloc
103struct mpd_song *
104mpd_run_get_queue_song_pos(struct mpd_connection *connection, unsigned pos);
105
114bool
115mpd_send_get_queue_song_id(struct mpd_connection *connection, unsigned id);
116
124mpd_malloc
125struct mpd_song *
126mpd_run_get_queue_song_id(struct mpd_connection *connection, unsigned id);
127
139bool
141 unsigned version);
142
159bool
161 unsigned version,
162 unsigned start, unsigned end);
163
175bool
177 unsigned version);
178
194bool
196 unsigned version,
197 unsigned start, unsigned end);
198
209bool
211 unsigned *position_r, unsigned *id_r);
212
220bool
221mpd_send_add(struct mpd_connection *connection, const char *uri);
222
230bool
231mpd_run_add(struct mpd_connection *connection, const char *uri);
232
244bool
245mpd_send_add_whence(struct mpd_connection *connection, const char *uri,
246 unsigned to, enum mpd_position_whence whence);
247
259bool
260mpd_run_add_whence(struct mpd_connection *connection, const char *uri,
261 unsigned to, enum mpd_position_whence whence);
262
271bool
272mpd_send_add_id(struct mpd_connection *connection, const char *uri);
273
283bool
284mpd_send_add_id_to(struct mpd_connection *connection, const char *uri,
285 unsigned to);
286
299bool
300mpd_send_add_id_whence(struct mpd_connection *connection, const char *uri,
301 unsigned to, enum mpd_position_whence whence);
302
310int
312
321int
322mpd_run_add_id(struct mpd_connection *connection, const char *uri);
323
333int
334mpd_run_add_id_to(struct mpd_connection *connection, const char *uri,
335 unsigned to);
336
349int
350mpd_run_add_id_whence(struct mpd_connection *connection, const char *uri,
351 unsigned to, enum mpd_position_whence whence);
352
360bool
361mpd_send_delete(struct mpd_connection *connection, unsigned pos);
362
370bool
371mpd_run_delete(struct mpd_connection *connection, unsigned pos);
372
384bool
386 unsigned start, unsigned end);
387
399bool
401 unsigned start, unsigned end);
402
410bool
411mpd_send_delete_id(struct mpd_connection *connection, unsigned id);
412
420bool
421mpd_run_delete_id(struct mpd_connection *connection, unsigned id);
422
429bool
431
438bool
439mpd_run_shuffle(struct mpd_connection *connection);
440
452bool
454 unsigned start, unsigned end);
455
467bool
469 unsigned start, unsigned end);
470
477bool
478mpd_send_clear(struct mpd_connection *connection);
479
486bool
487mpd_run_clear(struct mpd_connection *connection);
488
497bool
498mpd_send_move(struct mpd_connection *connection, unsigned from, unsigned to);
499
508bool
509mpd_run_move(struct mpd_connection *connection, unsigned from, unsigned to);
510
522bool
523mpd_send_move_whence(struct mpd_connection *connection, unsigned from,
524 unsigned to, enum mpd_position_whence whence);
525
537bool
538mpd_run_move_whence(struct mpd_connection *connection, unsigned from,
539 unsigned to, enum mpd_position_whence whence);
540
549bool
550mpd_send_move_id(struct mpd_connection *connection, unsigned from, unsigned to);
551
560bool
561mpd_run_move_id(struct mpd_connection *connection, unsigned from, unsigned to);
562
574bool
575mpd_send_move_id_whence(struct mpd_connection *connection, unsigned from,
576 unsigned to, enum mpd_position_whence whence);
577
589bool
590mpd_run_move_id_whence(struct mpd_connection *connection, unsigned from,
591 unsigned to, enum mpd_position_whence whence);
592
605bool
607 unsigned start, unsigned end, unsigned to);
608
621bool
623 unsigned start, unsigned end, unsigned to);
624
638bool
639mpd_send_move_range_whence(struct mpd_connection *connection, unsigned start,
640 unsigned end, unsigned to, enum mpd_position_whence whence);
641
655bool
656mpd_run_move_range_whence(struct mpd_connection *connection, unsigned start,
657 unsigned end, unsigned to, enum mpd_position_whence whence);
658
667bool
668mpd_send_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2);
669
678bool
679mpd_run_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2);
680
689bool
690mpd_send_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2);
691
700bool
701mpd_run_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2);
702
714bool
715mpd_send_add_tag_id(struct mpd_connection *connection, unsigned id,
716 enum mpd_tag_type tag, const char *value);
717
729bool
730mpd_run_add_tag_id(struct mpd_connection *connection, unsigned id,
731 enum mpd_tag_type tag, const char *value);
732
743bool
744mpd_send_clear_tag_id(struct mpd_connection *connection, unsigned id,
745 enum mpd_tag_type tag);
746
757bool
758mpd_run_clear_tag_id(struct mpd_connection *connection, unsigned id,
759 enum mpd_tag_type tag);
760
770bool
771mpd_send_clear_all_tags_id(struct mpd_connection *connection, unsigned id);
772
782bool
783mpd_run_clear_all_tags_id(struct mpd_connection *connection, unsigned id);
784
795bool
796mpd_send_prio(struct mpd_connection *connection, unsigned priority,
797 unsigned position);
798
809bool
810mpd_run_prio(struct mpd_connection *connection, unsigned priority,
811 unsigned position);
812
826bool
827mpd_send_prio_range(struct mpd_connection *connection, unsigned priority,
828 unsigned start, unsigned end);
829
843bool
844mpd_run_prio_range(struct mpd_connection *connection, unsigned priority,
845 unsigned start, unsigned end);
846
857bool
858mpd_send_prio_id(struct mpd_connection *connection, unsigned priority,
859 unsigned id);
860
871bool
872mpd_run_prio_id(struct mpd_connection *connection, unsigned priority,
873 unsigned id);
874
891bool
892mpd_send_range_id(struct mpd_connection *connection, unsigned id,
893 float start, float end);
894
908bool
909mpd_run_range_id(struct mpd_connection *connection, unsigned id,
910 float start, float end);
911#ifdef __cplusplus
912}
913#endif
914
915#endif
MPD client library.
mpd_position_whence
Definition: position.h:42
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:54