mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-23 06:59:53 -05:00
* 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
This commit is contained in:
parent
e621071bf1
commit
ffa1708070
33 changed files with 532 additions and 444 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue