queue.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_QUEUE_H
#define MPD_QUEUE_H
#include "compiler.h"
#include "position.h"
#include "tag.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_meta_range(struct mpd_connection *connection,
unsigned version,
unsigned start, unsigned end);
bool
mpd_send_queue_changes_brief(struct mpd_connection *connection,
unsigned version);
bool
mpd_send_queue_changes_brief_range(struct mpd_connection *connection,
unsigned version,
unsigned start, unsigned end);
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 *uri);
bool
mpd_run_add(struct mpd_connection *connection, const char *uri);
bool
mpd_send_add_whence(struct mpd_connection *connection, const char *uri,
unsigned to, enum mpd_position_whence whence);
bool
mpd_run_add_whence(struct mpd_connection *connection, const char *uri,
unsigned to, enum mpd_position_whence whence);
bool
mpd_send_add_id(struct mpd_connection *connection, const char *uri);
bool
mpd_send_add_id_to(struct mpd_connection *connection, const char *uri,
unsigned to);
bool
mpd_send_add_id_whence(struct mpd_connection *connection, const char *uri,
unsigned to, enum mpd_position_whence whence);
int
mpd_recv_song_id(struct mpd_connection *connection);
int
mpd_run_add_id(struct mpd_connection *connection, const char *uri);
int
mpd_run_add_id_to(struct mpd_connection *connection, const char *uri,
unsigned to);
int
mpd_run_add_id_whence(struct mpd_connection *connection, const char *uri,
unsigned to, enum mpd_position_whence whence);
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_whence(struct mpd_connection *connection, unsigned from,
unsigned to, enum mpd_position_whence whence);
bool
mpd_run_move_whence(struct mpd_connection *connection, unsigned from,
unsigned to, enum mpd_position_whence whence);
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_id_whence(struct mpd_connection *connection, unsigned from,
unsigned to, enum mpd_position_whence whence);
bool
mpd_run_move_id_whence(struct mpd_connection *connection, unsigned from,
unsigned to, enum mpd_position_whence whence);
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_move_range_whence(struct mpd_connection *connection, unsigned start,
unsigned end, unsigned to, enum mpd_position_whence whence);
bool
mpd_run_move_range_whence(struct mpd_connection *connection, unsigned start,
unsigned end, unsigned to, enum mpd_position_whence whence);
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_add_tag_id(struct mpd_connection *connection, unsigned id,
enum mpd_tag_type tag, const char *value);
bool
mpd_run_add_tag_id(struct mpd_connection *connection, unsigned id,
enum mpd_tag_type tag, const char *value);
bool
mpd_send_clear_tag_id(struct mpd_connection *connection, unsigned id,
enum mpd_tag_type tag);
bool
mpd_run_clear_tag_id(struct mpd_connection *connection, unsigned id,
enum mpd_tag_type tag);
bool
mpd_send_clear_all_tags_id(struct mpd_connection *connection, unsigned id);
bool
mpd_run_clear_all_tags_id(struct mpd_connection *connection, unsigned id);
bool
mpd_send_prio(struct mpd_connection *connection, unsigned priority,
unsigned position);
bool
mpd_run_prio(struct mpd_connection *connection, unsigned priority,
unsigned position);
bool
mpd_send_prio_range(struct mpd_connection *connection, unsigned priority,
unsigned start, unsigned end);
bool
mpd_run_prio_range(struct mpd_connection *connection, unsigned priority,
unsigned start, unsigned end);
bool
mpd_send_prio_id(struct mpd_connection *connection, unsigned priority,
unsigned id);
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_run_range_id(struct mpd_connection *connection, unsigned id,
float start, float end);
#ifdef __cplusplus
}
#endif
#endif
position.h
MPD client library.
mpd_position_whence
mpd_position_whence
Definition position.h:13
mpd_run_move_id_whence
bool mpd_run_move_id_whence(struct mpd_connection *connection, unsigned from, unsigned to, enum mpd_position_whence whence)
mpd_run_move
bool mpd_run_move(struct mpd_connection *connection, unsigned from, unsigned to)
mpd_run_move_whence
bool mpd_run_move_whence(struct mpd_connection *connection, unsigned from, unsigned to, enum mpd_position_whence whence)
mpd_send_swap_id
bool mpd_send_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2)
mpd_recv_queue_change_brief
bool mpd_recv_queue_change_brief(struct mpd_connection *connection, unsigned *position_r, unsigned *id_r)
mpd_run_add_id_whence
int mpd_run_add_id_whence(struct mpd_connection *connection, const char *uri, unsigned to, enum mpd_position_whence whence)
mpd_send_move_id_whence
bool mpd_send_move_id_whence(struct mpd_connection *connection, unsigned from, unsigned to, enum mpd_position_whence whence)
mpd_run_move_range
bool mpd_run_move_range(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to)
mpd_send_add_id_to
bool mpd_send_add_id_to(struct mpd_connection *connection, const char *uri, unsigned to)
mpd_run_shuffle_range
bool mpd_run_shuffle_range(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_send_prio_id
bool mpd_send_prio_id(struct mpd_connection *connection, unsigned priority, unsigned id)
mpd_send_add_id
bool mpd_send_add_id(struct mpd_connection *connection, const char *uri)
mpd_send_get_queue_song_pos
bool mpd_send_get_queue_song_pos(struct mpd_connection *connection, unsigned pos)
mpd_send_get_queue_song_id
bool mpd_send_get_queue_song_id(struct mpd_connection *connection, unsigned id)
mpd_send_prio_range
bool mpd_send_prio_range(struct mpd_connection *connection, unsigned priority, unsigned start, unsigned end)
mpd_send_shuffle_range
bool mpd_send_shuffle_range(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_send_shuffle
bool mpd_send_shuffle(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_add
bool mpd_run_add(struct mpd_connection *connection, const char *uri)
mpd_run_add_id
int mpd_run_add_id(struct mpd_connection *connection, const char *uri)
mpd_run_get_queue_song_pos
struct mpd_song * mpd_run_get_queue_song_pos(struct mpd_connection *connection, unsigned pos)
mpd_run_swap
bool mpd_run_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2)
mpd_send_queue_changes_meta
bool mpd_send_queue_changes_meta(struct mpd_connection *connection, unsigned version)
mpd_run_add_id_to
int mpd_run_add_id_to(struct mpd_connection *connection, const char *uri, unsigned to)
mpd_send_add
bool mpd_send_add(struct mpd_connection *connection, const char *uri)
mpd_run_delete_id
bool mpd_run_delete_id(struct mpd_connection *connection, unsigned id)
mpd_send_swap
bool mpd_send_swap(struct mpd_connection *connection, unsigned pos1, unsigned pos2)
mpd_send_prio
bool mpd_send_prio(struct mpd_connection *connection, unsigned priority, unsigned position)
mpd_run_add_tag_id
bool mpd_run_add_tag_id(struct mpd_connection *connection, unsigned id, enum mpd_tag_type tag, const char *value)
mpd_send_clear
bool mpd_send_clear(struct mpd_connection *connection)
mpd_run_prio
bool mpd_run_prio(struct mpd_connection *connection, unsigned priority, unsigned position)
mpd_recv_song_id
int mpd_recv_song_id(struct mpd_connection *connection)
mpd_send_delete_range
bool mpd_send_delete_range(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_send_clear_tag_id
bool mpd_send_clear_tag_id(struct mpd_connection *connection, unsigned id, enum mpd_tag_type tag)
mpd_run_move_range_whence
bool mpd_run_move_range_whence(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to, enum mpd_position_whence whence)
mpd_send_move_whence
bool mpd_send_move_whence(struct mpd_connection *connection, unsigned from, unsigned to, enum mpd_position_whence whence)
mpd_run_shuffle
bool mpd_run_shuffle(struct mpd_connection *connection)
mpd_send_delete
bool mpd_send_delete(struct mpd_connection *connection, unsigned pos)
mpd_send_queue_changes_brief
bool mpd_send_queue_changes_brief(struct mpd_connection *connection, unsigned version)
mpd_run_range_id
bool mpd_run_range_id(struct mpd_connection *connection, unsigned id, float start, float end)
mpd_run_clear
bool mpd_run_clear(struct mpd_connection *connection)
mpd_send_queue_changes_meta_range
bool mpd_send_queue_changes_meta_range(struct mpd_connection *connection, unsigned version, unsigned start, unsigned end)
mpd_run_delete_range
bool mpd_run_delete_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_delete_id
bool mpd_send_delete_id(struct mpd_connection *connection, unsigned id)
mpd_send_move
bool mpd_send_move(struct mpd_connection *connection, unsigned from, unsigned to)
mpd_run_get_queue_song_id
struct mpd_song * mpd_run_get_queue_song_id(struct mpd_connection *connection, unsigned id)
mpd_run_swap_id
bool mpd_run_swap_id(struct mpd_connection *connection, unsigned id1, unsigned id2)
mpd_run_clear_tag_id
bool mpd_run_clear_tag_id(struct mpd_connection *connection, unsigned id, enum mpd_tag_type tag)
mpd_send_list_queue_meta
bool mpd_send_list_queue_meta(struct mpd_connection *connection)
mpd_run_clear_all_tags_id
bool mpd_run_clear_all_tags_id(struct mpd_connection *connection, unsigned id)
mpd_send_add_id_whence
bool mpd_send_add_id_whence(struct mpd_connection *connection, const char *uri, unsigned to, enum mpd_position_whence whence)
mpd_send_queue_changes_brief_range
bool mpd_send_queue_changes_brief_range(struct mpd_connection *connection, unsigned version, unsigned start, unsigned end)
mpd_run_prio_id
bool mpd_run_prio_id(struct mpd_connection *connection, unsigned priority, unsigned id)
mpd_send_range_id
bool mpd_send_range_id(struct mpd_connection *connection, unsigned id, float start, float end)
mpd_send_add_whence
bool mpd_send_add_whence(struct mpd_connection *connection, const char *uri, unsigned to, enum mpd_position_whence whence)
mpd_run_move_id
bool mpd_run_move_id(struct mpd_connection *connection, unsigned from, unsigned to)
mpd_send_move_range_whence
bool mpd_send_move_range_whence(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to, enum mpd_position_whence whence)
mpd_send_add_tag_id
bool mpd_send_add_tag_id(struct mpd_connection *connection, unsigned id, enum mpd_tag_type tag, const char *value)
mpd_send_move_range
bool mpd_send_move_range(struct mpd_connection *connection, unsigned start, unsigned end, unsigned to)
mpd_run_prio_range
bool mpd_run_prio_range(struct mpd_connection *connection, unsigned priority, unsigned start, unsigned end)
mpd_send_clear_all_tags_id
bool mpd_send_clear_all_tags_id(struct mpd_connection *connection, unsigned id)
mpd_run_delete
bool mpd_run_delete(struct mpd_connection *connection, unsigned pos)
mpd_run_add_whence
bool mpd_run_add_whence(struct mpd_connection *connection, const char *uri, unsigned to, enum mpd_position_whence whence)
mpd_connection
mpd_song
tag.h
mpd_tag_type
mpd_tag_type
Definition tag.h:25