mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-17 08:56:42 -05:00
* extend HTTP module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@340 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
4590f09d0b
commit
f586ce0842
5 changed files with 84 additions and 50 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue