libmpdclient 2.22
output.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright The Music Player Daemon Project
3
10#ifndef MPD_OUTPUT_H
11#define MPD_OUTPUT_H
12
13#include "compiler.h"
14
15#include <stdbool.h>
16
17struct mpd_connection;
18struct mpd_pair;
19
25struct mpd_output;
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
38mpd_malloc
39struct mpd_output *
40mpd_output_begin(const struct mpd_pair *pair);
41
50bool
51mpd_output_feed(struct mpd_output *output, const struct mpd_pair *pair);
52
57void
59
63mpd_pure
64unsigned
65mpd_output_get_id(const struct mpd_output *output);
66
70mpd_pure
71const char *
72mpd_output_get_name(const struct mpd_output *output);
73
80mpd_pure
81const char *
82mpd_output_get_plugin(const struct mpd_output *output);
83
87mpd_pure
88bool
89mpd_output_get_enabled(const struct mpd_output *output);
90
98mpd_pure
99const char *
100mpd_output_get_attribute(const struct mpd_output *output, const char *name);
101
112const struct mpd_pair *
114
124const struct mpd_pair *
126
134bool
136
144mpd_malloc
145struct mpd_output *
146mpd_recv_output(struct mpd_connection *connection);
147
156bool
157mpd_send_enable_output(struct mpd_connection *connection, unsigned output_id);
158
167bool
168mpd_run_enable_output(struct mpd_connection *connection, unsigned output_id);
169
178bool
179mpd_send_disable_output(struct mpd_connection *connection, unsigned output_id);
180
189bool
190mpd_run_disable_output(struct mpd_connection *connection, unsigned output_id);
191
202bool
203mpd_send_toggle_output(struct mpd_connection *connection, unsigned output_id);
204
215bool
216mpd_run_toggle_output(struct mpd_connection *connection, unsigned output_id);
217
231bool
232mpd_send_output_set(struct mpd_connection *connection, unsigned output_id,
233 const char *attribute_name, const char *attribute_value);
234
240bool
241mpd_run_output_set(struct mpd_connection *connection, unsigned output_id,
242 const char *attribute_name, const char *attribute_value);
243
253bool
255 const char *output_name);
256
266bool
268 const char *output_name);
269
270#ifdef __cplusplus
271}
272#endif
273
274#endif
bool mpd_run_enable_output(struct mpd_connection *connection, unsigned output_id)
struct mpd_output * mpd_recv_output(struct mpd_connection *connection)
bool mpd_send_toggle_output(struct mpd_connection *connection, unsigned output_id)
const struct mpd_pair * mpd_output_first_attribute(struct mpd_output *output)
const char * mpd_output_get_plugin(const struct mpd_output *output)
const char * mpd_output_get_attribute(const struct mpd_output *output, const char *name)
bool mpd_send_output_set(struct mpd_connection *connection, unsigned output_id, const char *attribute_name, const char *attribute_value)
bool mpd_run_toggle_output(struct mpd_connection *connection, unsigned output_id)
bool mpd_send_enable_output(struct mpd_connection *connection, unsigned output_id)
bool mpd_run_move_output(struct mpd_connection *connection, const char *output_name)
bool mpd_send_move_output(struct mpd_connection *connection, const char *output_name)
const struct mpd_pair * mpd_output_next_attribute(struct mpd_output *output)
bool mpd_output_feed(struct mpd_output *output, const struct mpd_pair *pair)
bool mpd_output_get_enabled(const struct mpd_output *output)
bool mpd_send_outputs(struct mpd_connection *connection)
bool mpd_run_disable_output(struct mpd_connection *connection, unsigned output_id)
const char * mpd_output_get_name(const struct mpd_output *output)
void mpd_output_free(struct mpd_output *output)
struct mpd_output * mpd_output_begin(const struct mpd_pair *pair)
unsigned mpd_output_get_id(const struct mpd_output *output)
bool mpd_send_disable_output(struct mpd_connection *connection, unsigned output_id)
bool mpd_run_output_set(struct mpd_connection *connection, unsigned output_id, const char *attribute_name, const char *attribute_value)