diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-10-27 16:23:23 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-10-27 16:23:23 +0000 |
commit | 1bcec3ef5b83ca72c7d32e553566698607bae0e2 (patch) | |
tree | 0412d6573ab05381001635c7224f30cd51598434 /polyp/autoload.h | |
parent | f252edb7949c0114b666b1eacea5d6d2774d27a0 (diff) |
make autoload list use idxset
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@262 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/autoload.h')
-rw-r--r-- | polyp/autoload.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/polyp/autoload.h b/polyp/autoload.h index f80b1f0d..ec7d38f1 100644 --- a/polyp/autoload.h +++ b/polyp/autoload.h @@ -26,15 +26,20 @@ struct pa_autoload_entry { struct pa_core *core; + uint32_t index; char *name; enum pa_namereg_type type; int in_action; char *module, *argument; }; -int pa_autoload_add(struct pa_core *c, const char*name, enum pa_namereg_type type, const char*module, const char *argument); +int pa_autoload_add(struct pa_core *c, const char*name, enum pa_namereg_type type, const char*module, const char *argument, uint32_t *index); void pa_autoload_free(struct pa_core *c); -int pa_autoload_remove(struct pa_core *c, const char*name, enum pa_namereg_type type); +int pa_autoload_remove_by_name(struct pa_core *c, const char*name, enum pa_namereg_type type); +int pa_autoload_remove_by_index(struct pa_core *c, uint32_t index); void pa_autoload_request(struct pa_core *c, const char *name, enum pa_namereg_type type); +const struct pa_autoload_entry* pa_autoload_get_by_name(struct pa_core *c, const char*name, enum pa_namereg_type type); +const struct pa_autoload_entry* pa_autoload_get_by_index(struct pa_core *c, uint32_t index); + #endif |