ARG_USE_PID_FILE,
ARG_CHECK,
ARG_NO_CPU_LIMIT,
+ ARG_DISABLE_SHM,
ARG_SYSTEM
};
{"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}
};
" 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"
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;