diff options
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  | 
