myMPD partitions API
More...
|
| sds | mympd_api_partition_list (struct t_mympd_state *mympd_state, sds buffer, unsigned request_id) |
| |
| bool | mympd_api_partition_new (struct t_partition_state *partition_state, sds partition, sds *error) |
| |
| bool | mympd_api_partition_outputs_move (struct t_partition_state *partition_state, struct t_list *outputs, sds *error) |
| |
| sds | mympd_api_partition_rm (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, sds buffer, unsigned request_id, sds partition) |
| |
◆ mympd_api_partition_list()
| sds mympd_api_partition_list |
( |
struct t_mympd_state * |
mympd_state, |
|
|
sds |
buffer, |
|
|
unsigned |
request_id |
|
) |
| |
Lists partitions
- Parameters
-
| mympd_state | pointer to central myMPD state |
| buffer | already allocated sds string to append the response |
| request_id | jsonrpc request id |
- Returns
- pointer to buffer
◆ mympd_api_partition_new()
| bool mympd_api_partition_new |
( |
struct t_partition_state * |
partition_state, |
|
|
sds |
partition, |
|
|
sds * |
error |
|
) |
| |
Creates a new mpd partition
- Parameters
-
| partition_state | pointer to partition state |
| partition | new partition name |
| error | pointer to already allocated sds string to append the error message |
- Returns
- true on success, else false
◆ mympd_api_partition_outputs_move()
| bool mympd_api_partition_outputs_move |
( |
struct t_partition_state * |
partition_state, |
|
|
struct t_list * |
outputs, |
|
|
sds * |
error |
|
) |
| |
Moves outputs to the partition
- Parameters
-
| partition_state | pointer to partition state |
| outputs | list of outputs to move |
| error | pointer to already allocated sds string to append the error message |
- Returns
- true on success, else false
◆ mympd_api_partition_rm()
| sds mympd_api_partition_rm |
( |
struct t_mympd_state * |
mympd_state, |
|
|
struct t_partition_state * |
partition_state, |
|
|
sds |
buffer, |
|
|
unsigned |
request_id, |
|
|
sds |
partition |
|
) |
| |
Disconnects and removes a partition. Assigned outputs are moved to the default partition: https://github.com/MusicPlayerDaemon/MPD/discussions/1611
- Parameters
-
| mympd_state | pointer to mympd state |
| partition_state | pointer to partition state for default partition |
| buffer | already allocated sds string to append the response |
| request_id | jsonrpc request id |
| partition | partition to remove |
- Returns
- pointer to buffer