myMPD outputs API
More...
|
| bool | mympd_api_output_toggle (struct t_partition_state *partition_state, unsigned output_id, bool enabled, sds *error) |
| |
| sds | mympd_api_output_get (struct t_partition_state *partition_state, sds buffer, unsigned request_id, sds output_name) |
| |
| sds | mympd_api_output_list (struct t_partition_state *partition_state, sds buffer, unsigned request_id) |
| |
| bool | mympd_api_output_attributes_set (struct t_partition_state *partition_state, unsigned output_id, struct t_list *attributes, sds *error) |
| |
◆ mympd_api_output_attributes_set()
| bool mympd_api_output_attributes_set |
( |
struct t_partition_state * |
partition_state, |
|
|
unsigned |
output_id, |
|
|
struct t_list * |
attributes, |
|
|
sds * |
error |
|
) |
| |
Sets MPD output attributes
- Parameters
-
| partition_state | Pointer to partition state |
| output_id | Output ID |
| attributes | Attributes to set |
| error | Pointer to already allocated sds string for an error message |
- Returns
- true on success, else false
◆ mympd_api_output_get()
| sds mympd_api_output_get |
( |
struct t_partition_state * |
partition_state, |
|
|
sds |
buffer, |
|
|
unsigned |
request_id, |
|
|
sds |
output_name |
|
) |
| |
Gets details of an output
- Parameters
-
| partition_state | pointer to partition state |
| buffer | already allocated sds string to append the response |
| request_id | jsonrpc id |
| output_name | mpd output name |
- Returns
- pointer to buffer
◆ mympd_api_output_list()
| sds mympd_api_output_list |
( |
struct t_partition_state * |
partition_state, |
|
|
sds |
buffer, |
|
|
unsigned |
request_id |
|
) |
| |
Lists all outputs
- Parameters
-
| partition_state | pointer to partition state |
| buffer | already allocated sds string to append the response |
| request_id | jsonrpc id |
- Returns
- pointer to buffer
◆ mympd_api_output_toggle()
| bool mympd_api_output_toggle |
( |
struct t_partition_state * |
partition_state, |
|
|
unsigned |
output_id, |
|
|
bool |
enabled, |
|
|
sds * |
error |
|
) |
| |
Toggles the enabled state of a mpd output
- Parameters
-
| partition_state | pointer to partition state |
| output_id | mpd output id |
| enabled | the enabled state |
| error | already allocated sds string to append the error message |
- Returns
- true on success, else false