diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
commit | 1f0961368f58a9fec319d86c79a86a9f0d008cf5 (patch) | |
tree | c712a897bb34ade3c03a06ba754264153ac3bc16 /polyp/module.h | |
parent | 6c512fb5a3fdb578179be79672c5096de1a1d25b (diff) |
* remove a lot of compiler warnings introduced by using some new GCC flags
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module.h')
-rw-r--r-- | polyp/module.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/polyp/module.h b/polyp/module.h index f5daff95..6f137c15 100644 --- a/polyp/module.h +++ b/polyp/module.h @@ -28,15 +28,17 @@ #include "core.h" #include "modinfo.h" +typedef struct pa_module pa_module; + struct pa_module { - struct pa_core *core; + pa_core *core; char *name, *argument; uint32_t index; lt_dlhandle dl; - int (*init)(struct pa_core *c, struct pa_module*m); - void (*done)(struct pa_core *c, struct pa_module*m); + int (*init)(pa_core *c, pa_module*m); + void (*done)(pa_core *c, pa_module*m); void *userdata; @@ -47,22 +49,22 @@ struct pa_module { int unload_requested; }; -struct pa_module* pa_module_load(struct pa_core *c, const char *name, const char*argument); -/* void pa_module_unload(struct pa_core *c, struct pa_module *m); */ -/* void pa_module_unload_by_index(struct pa_core *c, uint32_t index); */ +pa_module* pa_module_load(pa_core *c, const char *name, const char*argument); +void pa_module_unload(pa_core *c, pa_module *m); +void pa_module_unload_by_index(pa_core *c, uint32_t idx); -void pa_module_unload_all(struct pa_core *c); -void pa_module_unload_unused(struct pa_core *c); +void pa_module_unload_all(pa_core *c); +void pa_module_unload_unused(pa_core *c); -void pa_module_unload_request(struct pa_module *m); +void pa_module_unload_request(pa_module *m); -void pa_module_set_used(struct pa_module*m, int used); +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_VERSION(s) const char * pa__get_version(void) { return s; } -struct pa_modinfo *pa_module_get_info(struct pa_module *m); +pa_modinfo *pa_module_get_info(pa_module *m); #endif |