summaryrefslogtreecommitdiffstats
path: root/polyp/module-alsa-sink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-11 23:17:38 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-11 23:17:38 +0000
commita9ca9c4a3bd8c3c03fe5d30cd2694cf891f5bbc1 (patch)
treed282dbf7742e836c598dafd00a51f893c76d0178 /polyp/module-alsa-sink.c
parent11f0aae5d6d087295594a095c889c9c5d956520f (diff)
add modinfo support
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@191 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module-alsa-sink.c')
-rw-r--r--polyp/module-alsa-sink.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/polyp/module-alsa-sink.c b/polyp/module-alsa-sink.c
index 9c75ff98..73c46ea0 100644
--- a/polyp/module-alsa-sink.c
+++ b/polyp/module-alsa-sink.c
@@ -40,6 +40,10 @@
#include "xmalloc.h"
#include "log.h"
+PA_MODULE_AUTHOR("Lennart Poettering")
+PA_MODULE_DESCRIPTION("ALSA Sink")
+PA_MODULE_VERSION(PACKAGE_VERSION)
+
struct userdata {
snd_pcm_t *pcm_handle;
struct pa_sink *sink;
@@ -156,7 +160,7 @@ static uint32_t sink_get_latency_cb(struct pa_sink *s) {
return pa_bytes_to_usec(frames * u->frame_size, &s->sample_spec);
}
-int pa_module_init(struct pa_core *c, struct pa_module*m) {
+int pa__init(struct pa_core *c, struct pa_module*m) {
struct pa_modargs *ma = NULL;
int ret = -1;
struct userdata *u = NULL;
@@ -237,12 +241,12 @@ finish:
fail:
if (u)
- pa_module_done(c, m);
+ pa__done(c, m);
goto finish;
}
-void pa_module_done(struct pa_core *c, struct pa_module*m) {
+void pa__done(struct pa_core *c, struct pa_module*m) {
struct userdata *u;
assert(c && m);