diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-01-12 18:51:38 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-01-12 18:51:38 +0000 |
commit | f586ce084244d60961ebd9b2b4555ecdc499c9f9 (patch) | |
tree | ba0476c7c75f6622d8b8964dfa9f91758ae39e44 /polyp/cli-text.c | |
parent | 4590f09d0b44aeb7cef3eed72b419444ea36d8e0 (diff) |
* extend HTTP module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@340 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/cli-text.c')
-rw-r--r-- | polyp/cli-text.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/polyp/cli-text.c b/polyp/cli-text.c index dd40add2..d4c46dc0 100644 --- a/polyp/cli-text.c +++ b/polyp/cli-text.c @@ -37,6 +37,7 @@ #include "sample-util.h" #include "scache.h" #include "autoload.h" +#include "xmalloc.h" char *pa_module_list_to_string(struct pa_core *c) { struct pa_strbuf *s; @@ -306,3 +307,46 @@ char *pa_autoload_list_to_string(struct pa_core *c) { return pa_strbuf_tostring_free(s); } + +char *pa_full_status_string(struct pa_core *c) { + struct pa_strbuf *s; + int i; + + s = pa_strbuf_new(); + + for (i = 0; i < 8; i++) { + char *t = NULL; + + switch (i) { + case 0: + t = pa_sink_list_to_string(c); + break; + case 1: + t = pa_source_list_to_string(c); + break; + case 2: + t = pa_sink_input_list_to_string(c); + break; + case 3: + t = pa_source_output_list_to_string(c); + break; + case 4: + t = pa_client_list_to_string(c); + break; + case 5: + t = pa_module_list_to_string(c); + break; + case 6: + t = pa_scache_list_to_string(c); + break; + case 7: + t = pa_autoload_list_to_string(c); + break; + } + + pa_strbuf_puts(s, t); + pa_xfree(t); + } + + return pa_strbuf_tostring_free(s); +} |