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.h | |
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.h')
-rw-r--r-- | polyp/module.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/polyp/module.h b/polyp/module.h index acc08c3e..663e0246 100644 --- a/polyp/module.h +++ b/polyp/module.h @@ -26,6 +26,7 @@ #include <ltdl.h> #include "core.h" +#include "modinfo.h" struct pa_module { struct pa_core *core; @@ -53,10 +54,17 @@ void pa_module_unload_unused(struct pa_core *c); void pa_module_unload_request(struct pa_core *c, struct pa_module *m); -/* These to following prototypes are for module entrypoints and not implemented by the core */ -int pa_module_init(struct pa_core *c, struct pa_module*m); -void pa_module_done(struct pa_core *c, struct pa_module*m); - void pa_module_set_used(struct pa_module*m, int used); +/* prototypes for the module's entry points */ +int pa__init(struct pa_core *c, struct pa_module*m); +void pa__done(struct pa_core *c, struct pa_module*m); + +#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; } + +struct pa_modinfo *pa_module_get_info(struct pa_module *m); + #endif |