mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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
This commit is contained in:
parent
8c6593dabf
commit
6e019795bf
27 changed files with 426 additions and 132 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue