mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
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:
parent
e61c2dddb7
commit
722c2c8c87
13 changed files with 300 additions and 96 deletions
17
src/sioman.c
Normal file
17
src/sioman.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <assert.h>
|
||||
#include "sioman.h"
|
||||
|
||||
static int stdio_inuse = 0;
|
||||
|
||||
int pa_stdio_acquire(void) {
|
||||
if (stdio_inuse)
|
||||
return -1;
|
||||
|
||||
stdio_inuse = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void pa_stdio_release(void) {
|
||||
assert(stdio_inuse);
|
||||
stdio_inuse = 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue