queue.h
Go to the documentation of this file.
/* libmpdclient
(c) 2003-2015 The Music Player Daemon Project
This project's homepage is: http://www.musicpd.org
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MPD_QUEUE_H
#define MPD_QUEUE_H
#include <mpd/compiler.h>
#include <stdbool.h>
struct mpd_connection;
#ifdef __cplusplus
extern "C" {
#endif
bool
mpd_send_list_queue_meta(struct mpd_connection *connection);
bool
mpd_send_list_queue_range_meta(struct mpd_connection *connection,
unsigned start, unsigned end);
bool
mpd_send_get_queue_song_pos(struct mpd_connection *connection, unsigned pos);
mpd_malloc
struct mpd_song *
mpd_run_get_queue_song_pos(struct mpd_connection *connection, unsigned pos);
bool
mpd_send_get_queue_song_id(struct mpd_connection *connection, unsigned id);
mpd_malloc
struct mpd_song *
mpd_run_get_queue_song_id(struct mpd_connection *connection, unsigned id);
bool
mpd_send_queue_changes_meta(struct mpd_connection *connection,
unsigned version);
bool
mpd_send_queue_changes_brief(struct mpd_connection *connection,
unsigned version);
bool
mpd_recv_queue_change_brief(struct mpd_connection *connection,
unsigned *position_r, unsigned *id_r);
bool
mpd_send_add(struct mpd_connection *connection, const char *file);
bool
mpd_run_add(struct mpd_connection *connection, const char *uri);
bool
mpd_send_add_id(struct mpd_connection *connection, const char *file);
bool
mpd_send_add_id_to(struct mpd_connection *connection, const char *uri,
unsigned to);
int
mpd_recv_song_id(struct mpd_connection *connection);
int
mpd_run_add_id(struct mpd_connection *connection, const char *file);
int
mpd_run_add_id_to(struct mpd_connection *connection, const char *uri,
unsigned to);
bool
mpd_send_delete(struct mpd_connection *connection, unsigned pos);
bool
mpd_run_delete(struct mpd_connection *connection, unsigned pos);
bool
mpd_send_delete_range(struct mpd_connection *connection,
unsigned start, unsigned end);
bool
mpd_run_delete_range(struct mpd_connection *connection,
unsigned start, unsigned end);
bool
mpd_send_delete_id(struct mpd_connection *connection, unsigned id);
bool
mpd_run_delete_id(struct mpd_connection *connection, unsigned id);
bool
mpd_send_shuffle(struct mpd_connection *connection);
bool
mpd_run_shuffle(struct mpd_connection *connection);
bool
mpd_send_shuffle_range(struct mpd_connection *connection, unsigned start, unsigned end);
bool
mpd_run_shuffle_range(struct mpd_connection *connection,
unsigned start, unsigned end);
bool
mpd_send_clear(struct mpd_connection *connection);
bool
mpd_run_clear(struct mpd_connection *connection);
bool
mpd_send_move(struct mpd_connection *connection, unsigned from, unsigned to);
bool
mpd_run_move(struct mpd_connection *connection, unsigned from, unsigned to);
bool
mpd_send_move_id(struct mpd_connection *connection, unsigned from, unsigned to);
bool
mpd_run_move_id(struct mpd_connection *connection, unsigned from, unsigned to);
bool
mpd_send_move_range(struct mpd_connection *connection,
unsigned start, unsigned end, unsigned to);
bool
mpd_run_move_range(struct mpd_connection *connection,
unsigned start, unsigned end, unsigned to);
bool
mpd_send_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2);
bool
mpd_run_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2);
bool
mpd_send_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2);
bool
mpd_run_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2);
bool
mpd_send_prio(struct mpd_connection *connection, int priority,
unsigned position);
bool
mpd_run_prio(struct mpd_connection *connection, int priority,
unsigned position);
bool
mpd_send_prio_range(struct mpd_connection *connection, int priority,
unsigned start, unsigned end);
bool
mpd_run_prio_range(struct mpd_connection *connection, int priority,
unsigned start, unsigned end);
bool
mpd_send_prio_id(struct mpd_connection *connection, int priority,
unsigned id);
bool
mpd_run_prio_id(struct mpd_connection *connection, int priority,
unsigned id);
#ifdef __cplusplus
}
#endif
#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)