aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/null_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-22 16:06:43 +0100
committerMax Kellermann <max@duempel.org>2009-01-22 16:06:43 +0100
commite1707c7ba3b831e133f2206e0e9b6cf63be34512 (patch)
tree6c7c9f9cce41c92ffe37923fd74f5069501a0451 /src/output/null_plugin.c
parenteefe97bdb1169b68b57284820ba699e1240d0b6f (diff)
downloadmpd-e1707c7ba3b831e133f2206e0e9b6cf63be34512.tar.gz
mpd-e1707c7ba3b831e133f2206e0e9b6cf63be34512.tar.xz
mpd-e1707c7ba3b831e133f2206e0e9b6cf63be34512.zip
null: no CamelCase
Renamed functions and variables.
Diffstat (limited to 'src/output/null_plugin.c')
-rw-r--r--src/output/null_plugin.c31
1 files changed, 18 insertions, 13 deletions
diff --git a/src/output/null_plugin.c b/src/output/null_plugin.c
index 077764308..139921a3f 100644
--- a/src/output/null_plugin.c
+++ b/src/output/null_plugin.c
@@ -26,25 +26,29 @@ struct null_data {
};
static void *
-null_initDriver(G_GNUC_UNUSED struct audio_output *audioOutput,
- G_GNUC_UNUSED const struct audio_format *audio_format,
- G_GNUC_UNUSED struct config_param *param)
+null_init(G_GNUC_UNUSED struct audio_output *audio_output,
+ G_GNUC_UNUSED const struct audio_format *audio_format,
+ G_GNUC_UNUSED struct config_param *param)
{
struct null_data *nd = g_new(struct null_data, 1);
+
nd->timer = NULL;
+
return nd;
}
static bool
-null_openDevice(void *data, struct audio_format *audio_format)
+null_open(void *data, struct audio_format *audio_format)
{
struct null_data *nd = data;
nd->timer = timer_new(audio_format);
+
return true;
}
-static void null_closeDevice(void *data)
+static void
+null_close(void *data)
{
struct null_data *nd = data;
@@ -55,7 +59,7 @@ static void null_closeDevice(void *data)
}
static bool
-null_playAudio(void *data, G_GNUC_UNUSED const char *playChunk, size_t size)
+null_play(void *data, G_GNUC_UNUSED const char *chunk, size_t size)
{
struct null_data *nd = data;
Timer *timer = nd->timer;
@@ -70,18 +74,19 @@ null_playAudio(void *data, G_GNUC_UNUSED const char *playChunk, size_t size)
return true;
}
-static void null_dropBufferedAudio(void *data)
+static void
+null_cancel(void *data)
{
struct null_data *nd = data;
timer_reset(nd->timer);
}
-const struct audio_output_plugin nullPlugin = {
+const struct audio_output_plugin null_output_plugin = {
.name = "null",
- .init = null_initDriver,
- .open = null_openDevice,
- .play = null_playAudio,
- .cancel = null_dropBufferedAudio,
- .close = null_closeDevice,
+ .init = null_init,
+ .open = null_open,
+ .close = null_close,
+ .play = null_play,
+ .cancel = null_cancel,
};