diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-11 23:17:38 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-11 23:17:38 +0000 |
commit | a9ca9c4a3bd8c3c03fe5d30cd2694cf891f5bbc1 (patch) | |
tree | d282dbf7742e836c598dafd00a51f893c76d0178 /polyp/module-x11-bell.c | |
parent | 11f0aae5d6d087295594a095c889c9c5d956520f (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-x11-bell.c')
-rw-r--r-- | polyp/module-x11-bell.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/polyp/module-x11-bell.c b/polyp/module-x11-bell.c index d8ec978b..ae69f9cb 100644 --- a/polyp/module-x11-bell.c +++ b/polyp/module-x11-bell.c @@ -39,6 +39,11 @@ #include "namereg.h" #include "log.h" +PA_MODULE_AUTHOR("Lennart Poettering") +PA_MODULE_DESCRIPTION("X11 Bell interceptor") +PA_MODULE_VERSION(PACKAGE_VERSION) +PA_MODULE_USAGE("sink=<sink to connect to> sample=<sample name> display=<X11 display>") + struct x11_source { struct pa_io_event *io_event; struct x11_source *next; @@ -105,7 +110,7 @@ static void new_io_source(struct userdata *u, int fd) { u->x11_sources = s; } -int pa_module_init(struct pa_core *c, struct pa_module*m) { +int pa__init(struct pa_core *c, struct pa_module*m) { struct userdata *u = NULL; struct pa_modargs *ma = NULL; int major, minor; @@ -160,11 +165,11 @@ fail: if (ma) pa_modargs_free(ma); if (m->userdata) - pa_module_done(c, m); + pa__done(c, m); return -1; } -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 = m->userdata; assert(c && m && u); |