support for esd arguments: -spawnpid and -spawnfd

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@231 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-09-21 19:40:55 +00:00
parent 3e1bdacd4f
commit 12949d0a65
4 changed files with 183 additions and 2 deletions

View file

@ -26,9 +26,13 @@ fail() {
exit 1
}
ARGS=""
for N in $(seq $#) ; do
case "$1" in
"")
;;
-v|--version)
echo "$VERSION_STRING"
@ -62,6 +66,16 @@ Ignored directives:
EOF
exit 0
;;
-spawnpid)
shift
ARGS="$ARGS '-Lmodule-esound-compat-spawnpid pid=$1'"
;;
-spawnfd)
shift
ARGS="$ARGS '-Lmodule-esound-compat-spawnfd fd=$1'"
;;
-unix|-b|-public|-terminate|-nobeeps|-trust|-tcp|-promiscuous)
# Ignore these commands
@ -70,6 +84,7 @@ EOF
-d|-r|-as|-port|-bind)
# Ignore these commands and their arguments
shift
;;
*)
@ -80,4 +95,4 @@ EOF
shift
done
exec "@POLYPAUDIO_BINARY@"
eval "exec '@POLYPAUDIO_BINARY@'$ARGS"