mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
rework module usage counter stuff to be pull based
This commit is contained in:
parent
edf88a5150
commit
bae221cca9
17 changed files with 126 additions and 18 deletions
|
|
@ -39,11 +39,10 @@ struct pa_module {
|
|||
|
||||
int (*init)(pa_module*m);
|
||||
void (*done)(pa_module*m);
|
||||
int (*get_n_used)(pa_module *m);
|
||||
|
||||
void *userdata;
|
||||
|
||||
int n_used;
|
||||
|
||||
pa_bool_t load_once:1;
|
||||
pa_bool_t unload_requested:1;
|
||||
};
|
||||
|
|
@ -58,7 +57,7 @@ void pa_module_unload_request_by_index(pa_core *c, uint32_t idx, pa_bool_t force
|
|||
|
||||
void pa_module_unload_all(pa_core *c);
|
||||
|
||||
void pa_module_set_used(pa_module*m, int used);
|
||||
int pa_module_get_n_used(pa_module*m);
|
||||
|
||||
#define PA_MODULE_AUTHOR(s) \
|
||||
const char *pa__get_author(void) { return s; } \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue