From 6e019795bff589ef0a867772975e34da78fffefb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Sep 2004 20:53:25 +0000 Subject: add refernce counting for sinks, sources, sink-inputs and source-outputs git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@200 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/module.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'polyp/module.h') diff --git a/polyp/module.h b/polyp/module.h index 663e0246..f422132a 100644 --- a/polyp/module.h +++ b/polyp/module.h @@ -43,16 +43,18 @@ struct pa_module { int n_used; int auto_unload; time_t last_used_time; + + 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); +/* 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); */ void pa_module_unload_all(struct pa_core *c); void pa_module_unload_unused(struct pa_core *c); -void pa_module_unload_request(struct pa_core *c, struct pa_module *m); +void pa_module_unload_request(struct pa_module *m); void pa_module_set_used(struct pa_module*m, int used); -- cgit