mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
allow setting properties for modules, too
This commit is contained in:
parent
fe703013ad
commit
b43a45d184
9 changed files with 61 additions and 9 deletions
|
|
@ -54,6 +54,8 @@ char *pa_module_list_to_string(pa_core *c) {
|
|||
pa_strbuf_printf(s, "%u module(s) loaded.\n", pa_idxset_size(c->modules));
|
||||
|
||||
for (m = pa_idxset_first(c->modules, &idx); m; m = pa_idxset_next(c->modules, &idx)) {
|
||||
char *t;
|
||||
|
||||
pa_strbuf_printf(s, " index: %u\n"
|
||||
"\tname: <%s>\n"
|
||||
"\targument: <%s>\n"
|
||||
|
|
@ -64,6 +66,10 @@ char *pa_module_list_to_string(pa_core *c) {
|
|||
pa_strempty(m->argument),
|
||||
pa_module_get_n_used(m),
|
||||
pa_yes_no(m->load_once));
|
||||
|
||||
t = pa_proplist_to_string_sep(m->proplist, "\n\t\t");
|
||||
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
||||
pa_xfree(t);
|
||||
}
|
||||
|
||||
return pa_strbuf_tostring_free(s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue