mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
get rid of nonsensical late initialization of namereg/scache and things
This commit is contained in:
parent
4a06af6081
commit
746dc2ac19
9 changed files with 41 additions and 102 deletions
|
|
@ -99,32 +99,6 @@ int pa_shared_remove(pa_core *c, const char *name) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
void pa_shared_init(pa_core *c) {
|
||||
pa_assert(c);
|
||||
|
||||
c->shared = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
|
||||
}
|
||||
|
||||
void pa_shared_cleanup(pa_core *c) {
|
||||
pa_assert(c);
|
||||
|
||||
if (!c->shared)
|
||||
return;
|
||||
|
||||
if (!pa_hashmap_isempty(c->shared)) {
|
||||
pa_strbuf *s = pa_strbuf_new();
|
||||
|
||||
pa_shared_dump(c, s);
|
||||
pa_log_debug("%s", pa_strbuf_tostring(s));
|
||||
pa_strbuf_free(s);
|
||||
pa_assert(pa_hashmap_isempty(c->shared));
|
||||
}
|
||||
|
||||
pa_hashmap_free(c->shared, NULL, NULL);
|
||||
c->shared = NULL;
|
||||
|
||||
}
|
||||
|
||||
void pa_shared_dump(pa_core *c, pa_strbuf *s) {
|
||||
void *state = NULL;
|
||||
pa_shared *p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue