diff options
Diffstat (limited to 'src/pulsecore/autoload.c')
-rw-r--r-- | src/pulsecore/autoload.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/pulsecore/autoload.c b/src/pulsecore/autoload.c index 0caaa295..26c294b2 100644 --- a/src/pulsecore/autoload.c +++ b/src/pulsecore/autoload.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /*** This file is part of PulseAudio. @@ -61,7 +59,7 @@ static void entry_remove_and_free(pa_autoload_entry *e) { static pa_autoload_entry* entry_new(pa_core *c, const char *name) { pa_autoload_entry *e = NULL; - + pa_core_assert_ref(c); pa_assert(name); @@ -91,7 +89,7 @@ static pa_autoload_entry* entry_new(pa_core *c, const char *name) { int pa_autoload_add(pa_core *c, const char*name, pa_namereg_type_t type, const char*module, const char *argument, uint32_t *idx) { pa_autoload_entry *e = NULL; - + pa_assert(c); pa_assert(name); pa_assert(module); @@ -112,7 +110,7 @@ int pa_autoload_add(pa_core *c, const char*name, pa_namereg_type_t type, const c int pa_autoload_remove_by_name(pa_core *c, const char*name, pa_namereg_type_t type) { pa_autoload_entry *e; - + pa_assert(c); pa_assert(name); pa_assert(type == PA_NAMEREG_SINK || type == PA_NAMEREG_SOURCE); @@ -126,7 +124,7 @@ int pa_autoload_remove_by_name(pa_core *c, const char*name, pa_namereg_type_t ty int pa_autoload_remove_by_index(pa_core *c, uint32_t idx) { pa_autoload_entry *e; - + pa_assert(c); pa_assert(idx != PA_IDXSET_INVALID); @@ -140,7 +138,7 @@ int pa_autoload_remove_by_index(pa_core *c, uint32_t idx) { void pa_autoload_request(pa_core *c, const char *name, pa_namereg_type_t type) { pa_autoload_entry *e; pa_module *m; - + pa_assert(c); pa_assert(name); @@ -167,7 +165,7 @@ static void free_func(void *p, PA_GCC_UNUSED void *userdata) { } void pa_autoload_free(pa_core *c) { - + if (c->autoload_hashmap) { pa_hashmap_free(c->autoload_hashmap, free_func, NULL); c->autoload_hashmap = NULL; |