queue Struct Reference

A queue of songs. More...

#include <queue.h>

Data Fields

unsigned max_length
 configured maximum length of the queue
unsigned length
 number of songs in the queue
uint32_t version
 the current version number
struct queue_itemitems
 all songs in "position" order
unsigned * order
 map order numbers to positions
int * id_to_position
 map song ids to positions
bool repeat
 repeat playback when the end of the queue has been reached?
bool single
 play only current song.
bool consume
 remove each played files.
bool random
 play back songs in random order?
GRand * rand
 random number generator for shuffle and random mode

Detailed Description

A queue of songs.

This is the backend of the playlist: it contains an ordered list of songs.

Songs can be addressed in three possible ways:

Definition at line 68 of file queue.h.


Field Documentation

remove each played files.

Definition at line 95 of file queue.h.

map song ids to positions

Definition at line 85 of file queue.h.

struct queue_item* queue::items [read]

all songs in "position" order

Definition at line 79 of file queue.h.

unsigned queue::length

number of songs in the queue

Definition at line 73 of file queue.h.

configured maximum length of the queue

Definition at line 70 of file queue.h.

unsigned* queue::order

map order numbers to positions

Definition at line 82 of file queue.h.

GRand* queue::rand

random number generator for shuffle and random mode

Definition at line 101 of file queue.h.

play back songs in random order?

Definition at line 98 of file queue.h.

repeat playback when the end of the queue has been reached?

Definition at line 89 of file queue.h.

play only current song.

Definition at line 92 of file queue.h.

uint32_t queue::version

the current version number

Definition at line 76 of file queue.h.


The documentation for this struct was generated from the following file:

Generated on 9 Aug 2013 for MPD by  doxygen 1.6.1