diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-08-04 16:39:30 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-08-04 16:39:30 +0000 |
commit | 46091a9237f17f4295dca7140d8d70b4fce8b357 (patch) | |
tree | 1c600cd6e1801586abfb66d767f2cd96e15c819c /polyp/module.h | |
parent | 24291aff27c671c11619684cb10d3b36fdf87c0d (diff) |
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
Diffstat (limited to 'polyp/module.h')
-rw-r--r-- | polyp/module.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/polyp/module.h b/polyp/module.h index af2d8552..de195a4b 100644 --- a/polyp/module.h +++ b/polyp/module.h @@ -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 |