summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/module.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-08-10 14:28:39 +0000
committerLennart Poettering <lennart@poettering.net>2007-08-10 14:28:39 +0000
commitffa170807086e959ce7cd9b21fb0c29b104b222b (patch)
treef1361aa0b1a54e9545a1de5398cbf1cf17c4b4cb /src/pulsecore/module.h
parente621071bf1a4f82ce5eba36917e67048ac0c59ef (diff)
* drop redundant pa_core argument from module initialization functions
* make pa__done() implementations optional * a couple of modernizations * wrap lt_dlsym() at a single place * allow passing of an "api" argument to the HAL module, to choose whether OSS devices or ALSA devices should be picked up * optimize fd closing a little on linux in the forked gconf helper * save a little memory in the xsmp module git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1615 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/module.h')
-rw-r--r--src/pulsecore/module.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pulsecore/module.h b/src/pulsecore/module.h
index 750dfaa8..7a93a071 100644
--- a/src/pulsecore/module.h
+++ b/src/pulsecore/module.h
@@ -39,8 +39,8 @@ struct pa_module {
lt_dlhandle dl;
- int (*init)(pa_core *c, pa_module*m);
- void (*done)(pa_core *c, pa_module*m);
+ int (*init)(pa_module*m);
+ void (*done)(pa_module*m);
void *userdata;
@@ -62,9 +62,9 @@ void pa_module_unload_request(pa_module *m);
void pa_module_set_used(pa_module*m, int used);
-#define PA_MODULE_AUTHOR(s) const char * pa__get_author(void) { return s; }
-#define PA_MODULE_DESCRIPTION(s) const char * pa__get_description(void) { return s; }
-#define PA_MODULE_USAGE(s) const char * pa__get_usage(void) { return s; }
+#define PA_MODULE_AUTHOR(s) const char *pa__get_author(void) { return s; }
+#define PA_MODULE_DESCRIPTION(s) const char *pa__get_description(void) { return s; }
+#define PA_MODULE_USAGE(s) const char *pa__get_usage(void) { return s; }
#define PA_MODULE_VERSION(s) const char * pa__get_version(void) { return s; }
pa_modinfo *pa_module_get_info(pa_module *m);