You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
831 B
C++
38 lines
831 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// Copyright The Music Player Daemon Project
|
|
|
|
#pragma once
|
|
|
|
/*
|
|
* Glue functions for controlling the audio outputs over the MPD
|
|
* protocol. These functions perform extra validation on all
|
|
* parameters, because they might be from an untrusted source.
|
|
*
|
|
*/
|
|
|
|
struct Partition;
|
|
|
|
/**
|
|
* Enables an audio output. Returns false if the specified output
|
|
* does not exist.
|
|
*/
|
|
bool
|
|
audio_output_enable_index(Partition &partition,
|
|
unsigned idx);
|
|
|
|
/**
|
|
* Disables an audio output. Returns false if the specified output
|
|
* does not exist.
|
|
*/
|
|
bool
|
|
audio_output_disable_index(Partition &partition,
|
|
unsigned idx);
|
|
|
|
/**
|
|
* Toggles an audio output. Returns false if the specified output
|
|
* does not exist.
|
|
*/
|
|
bool
|
|
audio_output_toggle_index(Partition &partition,
|
|
unsigned idx);
|