mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 00:23:23 -05:00
[player] remove unused player_queue struct
This commit is contained in:
parent
fbce3a7d57
commit
b19a7280b9
@ -3340,13 +3340,6 @@ playerqueue_get_byindex(struct player_command *cmd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
playerqueue_free(struct player_queue *queue)
|
||||
{
|
||||
free(queue->queue);
|
||||
free(queue);
|
||||
}
|
||||
|
||||
static int
|
||||
playerqueue_add(struct player_command *cmd)
|
||||
{
|
||||
|
15
src/player.h
15
src/player.h
@ -71,21 +71,6 @@ struct player_status {
|
||||
|
||||
typedef void (*spk_enum_cb)(uint64_t id, const char *name, int relvol, struct spk_flags flags, void *arg);
|
||||
|
||||
struct player_queue
|
||||
{
|
||||
// The item id of the current playing item
|
||||
uint32_t playingid;
|
||||
// The number of items in the queue
|
||||
unsigned int length;
|
||||
|
||||
// The position in the queue for the first item in the queue array
|
||||
unsigned int start_pos;
|
||||
// The number of items in the queue array
|
||||
unsigned int count;
|
||||
// The queue array (array of item ids)
|
||||
uint32_t *queue;
|
||||
};
|
||||
|
||||
struct player_history
|
||||
{
|
||||
/* Buffer index of the oldest remembered song */
|
||||
|
Loading…
Reference in New Issue
Block a user