diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-08-19 23:14:59 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-08-19 23:14:59 +0000 |
commit | f9b58fb0eafdc332e500a0851b0506146c2b14cd (patch) | |
tree | 3f4b197fdd9e21af7ad404de9dff61ed845a4154 /polyp/cli-text.c | |
parent | e0fe68a2d4e967c2b3d7afd300c854d173dcd95b (diff) |
move sample cache to namereg
documentation
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@141 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/cli-text.c')
-rw-r--r-- | polyp/cli-text.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/polyp/cli-text.c b/polyp/cli-text.c index 000d6d34..fa1ccdf9 100644 --- a/polyp/cli-text.c +++ b/polyp/cli-text.c @@ -212,13 +212,13 @@ char *pa_scache_list_to_string(struct pa_core *c) { s = pa_strbuf_new(); assert(s); - pa_strbuf_printf(s, "%u cache entries available.\n", c->scache_hashmap ? pa_hashmap_ncontents(c->scache_hashmap) : 0); + pa_strbuf_printf(s, "%u cache entries available.\n", c->scache ? pa_idxset_ncontents(c->scache) : 0); - if (c->scache_hashmap) { + if (c->scache) { struct pa_scache_entry *e; - void *state = NULL; + uint32_t index = PA_IDXSET_INVALID; - while ((e = pa_hashmap_iterate(c->scache_hashmap, &state))) { + for (e = pa_idxset_first(c->scache, &index); e; e = pa_idxset_next(c->scache, &index)) { double l; char ss[PA_SAMPLE_SNPRINT_MAX_LENGTH]; pa_sample_spec_snprint(ss, sizeof(ss), &e->sample_spec); |