MPD queue functions.
More...
Go to the source code of this file.
◆ 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_state | pointer to partition state |
| play | really play last inserts song |
| error | pointer 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_state | pointer to partition state |
| error | pointer 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_state | pointer to partition state |
| error | pointer 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_state | pointer to partition state |
| album_cache | pointer to album cache |
| buffer | already allocated sds string to append the response |
- Returns
- pointer to buffer
◆ mympd_client_queue_status_update()
Updates internal queue state
- Parameters
-
| partition_state | pointer to partition state |