myMPD
Internal API documentation
Loading...
Searching...
No Matches
queue.h File Reference

MPD queue functions. More...

Include dependency graph for queue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool mympd_client_queue_play_newly_inserted (struct t_partition_state *partition_state, sds *error)
 
bool mympd_client_queue_check_start_play (struct t_partition_state *partition_state, bool play, sds *error)
 
bool mympd_client_queue_clear (struct t_partition_state *partition_state, sds *error)
 
void mympd_client_queue_status_update (struct t_partition_state *partition_state)
 
sds mympd_client_queue_status_print (struct t_partition_state *partition_state, struct t_cache *album_cache, sds buffer)
 

Detailed Description

MPD queue functions.

Function Documentation

◆ mympd_client_queue_check_start_play()

bool mympd_client_queue_check_start_play ( struct t_partition_state partition_state,
bool  play,
sds *  error 
)

Tries to play the last inserted song and checks for success

Parameters
partition_statepointer to partition state
playreally play last inserts song
errorpointer to an already allocated sds string for the error message
Returns
true on success, else false

◆ mympd_client_queue_clear()

bool mympd_client_queue_clear ( struct t_partition_state partition_state,
sds *  error 
)

Clears the queue

Parameters
partition_statepointer to partition state
errorpointer to an already allocated sds string for the error message
Returns
true on success, else false

◆ mympd_client_queue_play_newly_inserted()

bool mympd_client_queue_play_newly_inserted ( struct t_partition_state partition_state,
sds *  error 
)

Plays the newest inserted song in the queue

Parameters
partition_statepointer to partition state
errorpointer to an already allocated sds string for the error message
Returns
true on success, else false

◆ mympd_client_queue_status_print()

sds mympd_client_queue_status_print ( struct t_partition_state partition_state,
struct t_cache album_cache,
sds  buffer 
)

Prints the queue status and updates internal state

Parameters
partition_statepointer to partition state
album_cachepointer to album cache
bufferalready allocated sds string to append the response
Returns
pointer to buffer

◆ mympd_client_queue_status_update()

void mympd_client_queue_status_update ( struct t_partition_state partition_state)

Prints the queue status and updates internal state

Parameters
partition_statepointer to partition state