aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-01-10 22:16:44 +0100
committerMax Kellermann <max@duempel.org>2011-01-10 22:16:44 +0100
commita1edc199dfc3981ca921fc56d390dac46f6b74ff (patch)
tree0d9893153648f40dc341957615779e37ffe3bdc6 /src/output_control.c
parentdb4aa81528f4d85110dca56c888e956391959f32 (diff)
downloadmpd-a1edc199dfc3981ca921fc56d390dac46f6b74ff.tar.gz
mpd-a1edc199dfc3981ca921fc56d390dac46f6b74ff.tar.xz
mpd-a1edc199dfc3981ca921fc56d390dac46f6b74ff.zip
output_control: document internal functions
Diffstat (limited to 'src/output_control.c')
-rw-r--r--src/output_control.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/output_control.c b/src/output_control.c
index 2c0e113ec..2bbeb3f81 100644
--- a/src/output_control.c
+++ b/src/output_control.c
@@ -38,6 +38,11 @@ enum {
struct notify audio_output_client_notify;
+/**
+ * Waits for command completion.
+ *
+ * @param ao the #audio_output instance; must be locked
+ */
static void ao_command_wait(struct audio_output *ao)
{
while (ao->command != AO_COMMAND_NONE) {
@@ -47,6 +52,12 @@ static void ao_command_wait(struct audio_output *ao)
}
}
+/**
+ * Sends a command to the #audio_output object, but does not wait for
+ * completion.
+ *
+ * @param ao the #audio_output instance; must be locked
+ */
static void ao_command_async(struct audio_output *ao,
enum audio_output_command cmd)
{
@@ -55,6 +66,12 @@ static void ao_command_async(struct audio_output *ao,
g_cond_signal(ao->cond);
}
+/**
+ * Sends a command to the #audio_output object and waits for
+ * completion.
+ *
+ * @param ao the #audio_output instance; must be locked
+ */
static void
ao_command(struct audio_output *ao, enum audio_output_command cmd)
{