output.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_OUTPUT_H
#define MPD_OUTPUT_H
#include "compiler.h"
#include <stdbool.h>
struct mpd_connection;
struct mpd_pair;
struct mpd_output;
#ifdef __cplusplus
extern "C" {
#endif
mpd_malloc
struct mpd_output *
mpd_output_begin(const struct mpd_pair *pair);
bool
mpd_output_feed(struct mpd_output *output, const struct mpd_pair *pair);
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);
mpd_pure
const char *
mpd_output_get_plugin(const struct mpd_output *output);
mpd_pure
bool
mpd_output_get_enabled(const struct mpd_output *output);
mpd_pure
const char *
mpd_output_get_attribute(const struct mpd_output *output, const char *name);
const struct mpd_pair *
mpd_output_first_attribute(struct mpd_output *output);
const struct mpd_pair *
mpd_output_next_attribute(struct mpd_output *output);
bool
mpd_send_outputs(struct mpd_connection *connection);
mpd_malloc
struct mpd_output *
mpd_recv_output(struct mpd_connection *connection);
bool
mpd_send_enable_output(struct mpd_connection *connection, unsigned output_id);
bool
mpd_run_enable_output(struct mpd_connection *connection, unsigned output_id);
bool
mpd_send_disable_output(struct mpd_connection *connection, unsigned output_id);
bool
mpd_run_disable_output(struct mpd_connection *connection, unsigned output_id);
bool
mpd_send_toggle_output(struct mpd_connection *connection, unsigned output_id);
bool
mpd_run_toggle_output(struct mpd_connection *connection, unsigned output_id);
bool
mpd_send_output_set(struct mpd_connection *connection, unsigned output_id,
const char *attribute_name, const char *attribute_value);
bool
mpd_run_output_set(struct mpd_connection *connection, unsigned output_id,
const char *attribute_name, const char *attribute_value);
bool
mpd_send_move_output(struct mpd_connection *connection,
const char *output_name);
bool
mpd_run_move_output(struct mpd_connection *connection,
const char *output_name);
#ifdef __cplusplus
}
#endif
#endif
mpd_run_enable_output
bool mpd_run_enable_output(struct mpd_connection *connection, unsigned output_id)
mpd_recv_output
struct mpd_output * mpd_recv_output(struct mpd_connection *connection)
mpd_send_toggle_output
bool mpd_send_toggle_output(struct mpd_connection *connection, unsigned output_id)
mpd_output_first_attribute
const struct mpd_pair * mpd_output_first_attribute(struct mpd_output *output)
mpd_output_get_plugin
const char * mpd_output_get_plugin(const struct mpd_output *output)
mpd_output_get_attribute
const char * mpd_output_get_attribute(const struct mpd_output *output, const char *name)
mpd_send_output_set
bool mpd_send_output_set(struct mpd_connection *connection, unsigned output_id, const char *attribute_name, const char *attribute_value)
mpd_run_toggle_output
bool mpd_run_toggle_output(struct mpd_connection *connection, unsigned output_id)
mpd_send_enable_output
bool mpd_send_enable_output(struct mpd_connection *connection, unsigned output_id)
mpd_run_move_output
bool mpd_run_move_output(struct mpd_connection *connection, const char *output_name)
mpd_send_move_output
bool mpd_send_move_output(struct mpd_connection *connection, const char *output_name)
mpd_output_next_attribute
const struct mpd_pair * mpd_output_next_attribute(struct mpd_output *output)
mpd_output_feed
bool mpd_output_feed(struct mpd_output *output, const struct mpd_pair *pair)
mpd_output_get_enabled
bool mpd_output_get_enabled(const struct mpd_output *output)
mpd_send_outputs
bool mpd_send_outputs(struct mpd_connection *connection)
mpd_run_disable_output
bool mpd_run_disable_output(struct mpd_connection *connection, unsigned output_id)
mpd_output_get_name
const char * mpd_output_get_name(const struct mpd_output *output)
mpd_output_free
void mpd_output_free(struct mpd_output *output)
mpd_output_begin
struct mpd_output * mpd_output_begin(const struct mpd_pair *pair)
mpd_output_get_id
unsigned mpd_output_get_id(const struct mpd_output *output)
mpd_send_disable_output
bool mpd_send_disable_output(struct mpd_connection *connection, unsigned output_id)
mpd_run_output_set
bool mpd_run_output_set(struct mpd_connection *connection, unsigned output_id, const char *attribute_name, const char *attribute_value)
mpd_connection
mpd_output
mpd_pair
Definition pair.h:16