mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
introduce pa_xmalloc() and friends
implement module auto loading git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@103 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
24291aff27
commit
46091a9237
61 changed files with 700 additions and 631 deletions
|
|
@ -38,6 +38,10 @@ struct pa_module {
|
|||
void (*done)(struct pa_core *c, struct pa_module*m);
|
||||
|
||||
void *userdata;
|
||||
|
||||
int n_used;
|
||||
int auto_unload;
|
||||
time_t last_used_time;
|
||||
};
|
||||
|
||||
struct pa_module* pa_module_load(struct pa_core *c, const char *name, const char*argument);
|
||||
|
|
@ -45,6 +49,7 @@ 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);
|
||||
|
||||
|
|
@ -52,4 +57,7 @@ void pa_module_unload_request(struct pa_core *c, struct pa_module *m);
|
|||
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);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue