add kill_* and default_* commands to CLI

make module-cli unload itself on EOF
clean up stdio usage
add sink pointer to monitor sources


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@50 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-07-04 17:40:15 +00:00
parent e61c2dddb7
commit 722c2c8c87
13 changed files with 300 additions and 96 deletions

View file

@ -39,8 +39,12 @@ void pa_client_free(struct pa_client *c) {
void pa_client_kill(struct pa_client *c) {
assert(c);
if (c->kill)
c->kill(c);
if (!c->kill) {
fprintf(stderr, "kill() operation not implemented for client %u\n", c->index);
return;
}
c->kill(c);
}
char *pa_client_list_to_string(struct pa_core *c) {