mpd/output.h File Reference
MPD client library.
More...
Go to the source code of this file.
Detailed Description
MPD client library.
Do not include this header directly. Use mpd/client.h instead.
Definition in file output.h.
Function Documentation
Begins parsing a new mpd_output.
- Parameters:
-
| pair | the first pair in this output (name is "outputid") |
- Returns:
- the new mpd_output object, or NULL on error (out of memory, or wrong pair name)
Parses the pair, adding its information to the specified mpd_output object.
- Returns:
- true if the pair was parsed and added to the output (or if the pair was not understood and ignored), false if this pair is the beginning of the next output
void mpd_output_free |
( |
struct mpd_output * |
output |
) |
|
mpd_pure unsigned mpd_output_get_id |
( |
const struct mpd_output * |
output |
) |
|
mpd_pure const char* mpd_output_get_name |
( |
const struct mpd_output * |
output |
) |
|
- Returns:
- the configured name of the specified mpd_output object
mpd_pure bool mpd_output_get_enabled |
( |
const struct mpd_output * |
output |
) |
|
- Returns:
- true if this output is enabled
Sends the "outputs" command to MPD. Call mpd_recv_output() to read the response.
- Parameters:
-
- Returns:
- true on success
bool mpd_send_enable_output |
( |
struct mpd_connection * |
connection, |
|
|
unsigned |
output_id | |
|
) |
| | |
Sends the "enableoutput" command to MPD.
- Parameters:
-
- Returns:
- true on success
bool mpd_run_enable_output |
( |
struct mpd_connection * |
connection, |
|
|
unsigned |
output_id | |
|
) |
| | |
bool mpd_send_disable_output |
( |
struct mpd_connection * |
connection, |
|
|
unsigned |
output_id | |
|
) |
| | |
Sends the "disableoutput" command to MPD.
- Parameters:
-
- Returns:
- true on success
bool mpd_run_disable_output |
( |
struct mpd_connection * |
connection, |
|
|
unsigned |
output_id | |
|
) |
| | |