Some MPD shortcuts.
More...
Go to the source code of this file.
|
| bool | mympd_client_command_list_end_check (struct t_partition_state *partition_state) |
| |
| bool | mympd_client_add_uris_to_queue (struct t_partition_state *partition_state, struct t_list *uris, unsigned to, unsigned whence, sds *error) |
| |
| bool | mympd_client_add_album_to_queue (struct t_partition_state *partition_state, struct t_cache *album_cache, sds album_id, unsigned to, unsigned whence, sds *error) |
| |
| bool | mympd_client_add_albums_to_queue (struct t_partition_state *partition_state, struct t_cache *album_cache, struct t_list *albumids, unsigned to, unsigned whence, sds *error) |
| |
◆ mympd_client_add_album_to_queue()
| bool mympd_client_add_album_to_queue |
( |
struct t_partition_state * |
partition_state, |
|
|
struct t_cache * |
album_cache, |
|
|
sds |
album_id, |
|
|
unsigned |
to, |
|
|
unsigned |
whence, |
|
|
sds * |
error |
|
) |
| |
Inserts an album into the queue
- Parameters
-
| partition_state | pointer to partition state |
| album_cache | pointer to album cache |
| album_id | album id to add |
| to | position to insert |
| whence | how to interpret the to parameter |
| error | pointer to an already allocated sds string for the error message |
- Returns
- true on success, else false
◆ mympd_client_add_albums_to_queue()
| bool mympd_client_add_albums_to_queue |
( |
struct t_partition_state * |
partition_state, |
|
|
struct t_cache * |
album_cache, |
|
|
struct t_list * |
albumids, |
|
|
unsigned |
to, |
|
|
unsigned |
whence, |
|
|
sds * |
error |
|
) |
| |
Inserts albums into the queue
- Parameters
-
| partition_state | pointer to partition state |
| album_cache | pointer to album cache |
| albumids | album ids to insert |
| to | position to insert |
| whence | how to interpret the to parameter |
| error | pointer to an already allocated sds string for the error message |
- Returns
- true on success, else false
◆ mympd_client_add_uris_to_queue()
| bool mympd_client_add_uris_to_queue |
( |
struct t_partition_state * |
partition_state, |
|
|
struct t_list * |
uris, |
|
|
unsigned |
to, |
|
|
unsigned |
whence, |
|
|
sds * |
error |
|
) |
| |
Insert uris into the queue
- Parameters
-
| partition_state | pointer to partition state |
| uris | uris to insert |
| to | position to insert |
| whence | how to interpret the to parameter |
| error | pointer to an already allocated sds string for the error message |
- Returns
- true on success, else false
◆ mympd_client_command_list_end_check()
| bool mympd_client_command_list_end_check |
( |
struct t_partition_state * |
partition_state | ) |
|
Sends mpd_command_list_end if MPD is connected. Usage: Set MPD_FAILURE if a send command returns false in a command list. Workaround for not cancelable command lists
- Parameters
-
| partition_state | pointer to partition state |
- Returns
- true on success, else false