libmpdclient: /usr/src/extras/libmpdclient/libmpdclient-2.11-1.i686/src/libmpdclient-2.11/include/mpd/queue.h Source File

libmpdclient 2.11

queue.h
Go to the documentation of this file.
1 /* libmpdclient
2 (c) 2003-2017 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 <mpd/compiler.h>
41
42 #include <stdbool.h>
43
44 struct mpd_connection;
45
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49
54 bool
55 mpd_send_list_queue_meta(struct mpd_connection *connection);
56
68 bool
69 mpd_send_list_queue_range_meta(struct mpd_connection *connection,
70 unsigned start, unsigned end);
71
79 bool
80 mpd_send_get_queue_song_pos(struct mpd_connection *connection, unsigned pos);
81
89 mpd_malloc
90 struct mpd_song *
91 mpd_run_get_queue_song_pos(struct mpd_connection *connection, unsigned pos);
92
100 bool
101 mpd_send_get_queue_song_id(struct mpd_connection *connection, unsigned id);
102
110 mpd_malloc
111 struct mpd_song *
112 mpd_run_get_queue_song_id(struct mpd_connection *connection, unsigned id);
113
122 bool
123 mpd_send_queue_changes_meta(struct mpd_connection *connection,
124 unsigned version);
125
135 bool
136 mpd_send_queue_changes_brief(struct mpd_connection *connection,
137 unsigned version);
138
148 bool
149 mpd_recv_queue_change_brief(struct mpd_connection *connection,
150 unsigned *position_r, unsigned *id_r);
151
155 bool
156 mpd_send_add(struct mpd_connection *connection, const char *file);
157
165 bool
166 mpd_run_add(struct mpd_connection *connection, const char *uri);
167
171 bool
172 mpd_send_add_id(struct mpd_connection *connection, const char *file);
173
182 bool
183 mpd_send_add_id_to(struct mpd_connection *connection, const char *uri,
184 unsigned to);
185
192 int
193 mpd_recv_song_id(struct mpd_connection *connection);
194
200 int
201 mpd_run_add_id(struct mpd_connection *connection, const char *file);
202
211 int
212 mpd_run_add_id_to(struct mpd_connection *connection, const char *uri,
213 unsigned to);
214
221 bool
222 mpd_send_delete(struct mpd_connection *connection, unsigned pos);
223
231 bool
232 mpd_run_delete(struct mpd_connection *connection, unsigned pos);
233
245 bool
246 mpd_send_delete_range(struct mpd_connection *connection,
247 unsigned start, unsigned end);
248
260 bool
261 mpd_run_delete_range(struct mpd_connection *connection,
262 unsigned start, unsigned end);
263
270 bool
271 mpd_send_delete_id(struct mpd_connection *connection, unsigned id);
272
280 bool
281 mpd_run_delete_id(struct mpd_connection *connection, unsigned id);
282
288 bool
289 mpd_send_shuffle(struct mpd_connection *connection);
290
296 bool
297 mpd_run_shuffle(struct mpd_connection *connection);
298
309 bool
310 mpd_send_shuffle_range(struct mpd_connection *connection, unsigned start, unsigned end);
311
322 bool
323 mpd_run_shuffle_range(struct mpd_connection *connection,
324 unsigned start, unsigned end);
325
331 bool
332 mpd_send_clear(struct mpd_connection *connection);
333
339 bool
340 mpd_run_clear(struct mpd_connection *connection);
341
349 bool
350 mpd_send_move(struct mpd_connection *connection, unsigned from, unsigned to);
351
359 bool
360 mpd_run_move(struct mpd_connection *connection, unsigned from, unsigned to);
361
369 bool
370 mpd_send_move_id(struct mpd_connection *connection, unsigned from, unsigned to);
371
379 bool
380 mpd_run_move_id(struct mpd_connection *connection, unsigned from, unsigned to);
381
394 bool
395 mpd_send_move_range(struct mpd_connection *connection,
396 unsigned start, unsigned end, unsigned to);
397
410 bool
411 mpd_run_move_range(struct mpd_connection *connection,
412 unsigned start, unsigned end, unsigned to);
413
421 bool
422 mpd_send_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2);
423
431 bool
432 mpd_run_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2);
433
441 bool
442 mpd_send_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2);
443
451 bool
452 mpd_run_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2);
453
463 bool
464 mpd_send_prio(struct mpd_connection *connection, int priority,
465 unsigned position);
466
476 bool
477 mpd_run_prio(struct mpd_connection *connection, int priority,
478 unsigned position);
479
492 bool
493 mpd_send_prio_range(struct mpd_connection *connection, int priority,
494 unsigned start, unsigned end);
495
508 bool
509 mpd_run_prio_range(struct mpd_connection *connection, int priority,
510 unsigned start, unsigned end);
511
521 bool
522 mpd_send_prio_id(struct mpd_connection *connection, int priority,
523 unsigned id);
524
534 bool
535 mpd_run_prio_id(struct mpd_connection *connection, int priority,
536 unsigned id);
537
538 #ifdef __cplusplus
539 }
540 #endif
541
542 #endif
mpd_run_add
bool mpd_run_add(struct mpd_connection *connection, const char *uri)
mpd_send_delete_id
bool mpd_send_delete_id(struct mpd_connection *connection, unsigned id)
mpd_run_delete_range
bool mpd_run_delete_range(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_run_prio_id
bool mpd_run_prio_id(struct mpd_connection *connection, int priority, unsigned id)
mpd_send_move_range
bool mpd_send_move_range(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to)
mpd_send_list_queue_meta
bool mpd_send_list_queue_meta(struct mpd_connection *connection)
mpd_send_list_queue_range_meta
bool mpd_send_list_queue_range_meta(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_run_get_queue_song_id
mpd_malloc struct mpd_song * mpd_run_get_queue_song_id(struct mpd_connection *connection, unsigned id)
mpd_run_shuffle_range
bool mpd_run_shuffle_range(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_send_move_id
bool mpd_send_move_id(struct mpd_connection *connection, unsigned from, unsigned to)
mpd_send_swap_id
bool mpd_send_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2)
mpd_send_get_queue_song_id
bool mpd_send_get_queue_song_id(struct mpd_connection *connection, unsigned id)
mpd_run_prio
bool mpd_run_prio(struct mpd_connection *connection, int priority, unsigned position)
mpd_run_prio_range
bool mpd_run_prio_range(struct mpd_connection *connection, int priority, unsigned start, unsigned end)
mpd_send_shuffle
bool mpd_send_shuffle(struct mpd_connection *connection)
mpd_run_move
bool mpd_run_move(struct mpd_connection *connection, unsigned from, unsigned to)
mpd_send_prio
bool mpd_send_prio(struct mpd_connection *connection, int priority, unsigned position)
mpd_run_shuffle
bool mpd_run_shuffle(struct mpd_connection *connection)
mpd_run_move_id
bool mpd_run_move_id(struct mpd_connection *connection, unsigned from, unsigned to)
mpd_run_get_queue_song_pos
mpd_malloc struct mpd_song * mpd_run_get_queue_song_pos(struct mpd_connection *connection, unsigned pos)
mpd_recv_queue_change_brief
bool mpd_recv_queue_change_brief(struct mpd_connection *connection, unsigned *position_r, unsigned *id_r)
compiler.h
Compiler specific definitions.
mpd_send_get_queue_song_pos
bool mpd_send_get_queue_song_pos(struct mpd_connection *connection, unsigned pos)
mpd_recv_song_id
int mpd_recv_song_id(struct mpd_connection *connection)
mpd_send_queue_changes_brief
bool mpd_send_queue_changes_brief(struct mpd_connection *connection, unsigned version)
mpd_run_swap_id
bool mpd_run_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2)
mpd_send_add_id
bool mpd_send_add_id(struct mpd_connection *connection, const char *file)
mpd_run_delete
bool mpd_run_delete(struct mpd_connection *connection, unsigned pos)
mpd_run_move_range
bool mpd_run_move_range(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to)
mpd_send_move
bool mpd_send_move(struct mpd_connection *connection, unsigned from, unsigned to)
mpd_send_swap
bool mpd_send_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2)
mpd_run_delete_id
bool mpd_run_delete_id(struct mpd_connection *connection, unsigned id)
mpd_send_shuffle_range
bool mpd_send_shuffle_range(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_run_add_id
int mpd_run_add_id(struct mpd_connection *connection, const char *file)
mpd_run_clear
bool mpd_run_clear(struct mpd_connection *connection)
mpd_send_delete_range
bool mpd_send_delete_range(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_connection
Definition: connection.h:48
mpd_send_add_id_to
bool mpd_send_add_id_to(struct mpd_connection *connection, const char *uri, unsigned to)
mpd_send_prio_range
bool mpd_send_prio_range(struct mpd_connection *connection, int priority, unsigned start, unsigned end)
mpd_send_add
bool mpd_send_add(struct mpd_connection *connection, const char *file)
mpd_song
Definition: song.h:49
mpd_run_add_id_to
int mpd_run_add_id_to(struct mpd_connection *connection, const char *uri, unsigned to)
mpd_run_swap
bool mpd_run_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2)
mpd_send_clear
bool mpd_send_clear(struct mpd_connection *connection)
mpd_send_queue_changes_meta
bool mpd_send_queue_changes_meta(struct mpd_connection *connection, unsigned version)
mpd_send_delete
bool mpd_send_delete(struct mpd_connection *connection, unsigned pos)
mpd_send_prio_id
bool mpd_send_prio_id(struct mpd_connection *connection, int priority, unsigned id)