[pulseaudio-commits] r1288 - /trunk/src/daemon/cmdline.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Aug 18 18:21:23 PDT 2006


Author: lennart
Date: Sat Aug 19 03:21:22 2006
New Revision: 1288

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1288&root=pulseaudio&view=rev
Log:
add --disable-shm command line option to the daemon

Modified:
    trunk/src/daemon/cmdline.c

Modified: trunk/src/daemon/cmdline.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/daemon/cmdline.c?rev=1288&root=pulseaudio&r1=1287&r2=1288&view=diff
==============================================================================
--- trunk/src/daemon/cmdline.c (original)
+++ trunk/src/daemon/cmdline.c Sat Aug 19 03:21:22 2006
@@ -60,6 +60,7 @@
     ARG_USE_PID_FILE,
     ARG_CHECK,
     ARG_NO_CPU_LIMIT,
+    ARG_DISABLE_SHM,
     ARG_SYSTEM
 };
 
@@ -88,6 +89,7 @@
     {"check",                       0, 0, ARG_CHECK},
     {"system",                      2, 0, ARG_SYSTEM},
     {"no-cpu-limit",                2, 0, ARG_NO_CPU_LIMIT},
+    {"disable-shm",                 2, 0, ARG_DISABLE_SHM},
     {NULL, 0, 0, 0}
 };
 
@@ -132,7 +134,8 @@
            "                                        src-zero-order-hold,src-linear,trivial)\n"
            "      --use-pid-file[=BOOL]             Create a PID file\n"
            "      --no-cpu-limit[=BOOL]             Do not install CPU load limiter on\n"
-           "                                        platforms that support it.\n\n"
+           "                                        platforms that support it.\n"
+           "      --disable-shm[=BOOL]              Disable shared memory support.\n\n"
 
            "STARTUP SCRIPT:\n"
            "  -L, --load=\"MODULE ARGUMENTS\"         Load the specified plugin module with\n"
@@ -297,7 +300,13 @@
                     goto fail;
                 }
                 break;
-                
+
+            case ARG_DISABLE_SHM:
+                if ((conf->disable_shm = optarg ? pa_parse_boolean(optarg) : 1) < 0) {
+                    pa_log("--disable-shm expects boolean argument");
+                    goto fail;
+                }
+                break;
                 
             default:
                 goto fail;




More information about the pulseaudio-commits mailing list