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

Functions to populate the jukebox queue. More...

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

Go to the source code of this file.

Functions

bool mympd_worker_jukebox_push (struct t_mympd_worker_state *mympd_worker_state)
 
bool mympd_worker_jukebox_error (struct t_mympd_worker_state *mympd_worker_state, sds error)
 
bool mympd_worker_jukebox_queue_fill (struct t_mympd_worker_state *mympd_worker_state, struct t_list *queue_list, unsigned add_songs, sds *error)
 
bool mympd_worker_jukebox_queue_fill_add (struct t_mympd_worker_state *mympd_worker_state, struct t_list *queue_list, unsigned add_songs, sds *error)
 

Detailed Description

Functions to populate the jukebox queue.

Function Documentation

◆ mympd_worker_jukebox_error()

bool mympd_worker_jukebox_error ( struct t_mympd_worker_state mympd_worker_state,
sds  error 
)

Pushes an jukebox creation error to the mympd api thread

Parameters
mympd_worker_statepointer to mpd worker state
errorError message to send
Returns
true on success, else false

◆ mympd_worker_jukebox_push()

bool mympd_worker_jukebox_push ( struct t_mympd_worker_state mympd_worker_state)

Pushes the created jukebox queue to the mympd api thread

Parameters
mympd_worker_statepointer to mpd worker state
Returns
true on success, else false

◆ mympd_worker_jukebox_queue_fill()

bool mympd_worker_jukebox_queue_fill ( struct t_mympd_worker_state mympd_worker_state,
struct t_list queue_list,
unsigned  add_songs,
sds *  error 
)

Fills the jukebox queue

Parameters
mympd_worker_statepointer to mpd worker state
queue_listlist to check uniq constraint against
add_songsnumber of songs to additionally add
errorpointer to allocates sds for error message
Returns
bool true on success, else false

◆ mympd_worker_jukebox_queue_fill_add()

bool mympd_worker_jukebox_queue_fill_add ( struct t_mympd_worker_state mympd_worker_state,
struct t_list queue_list,
unsigned  add_songs,
sds *  error 
)

Fills the jukebox queue and add songs to the mpd queue

Parameters
mympd_worker_statepointer to mpd worker state
queue_listlist to check uniq constraint against
add_songsnumber of songs to add
errorpointer to allocates sds for error message
Returns
true on success, else false