mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
add option to disallow module loading after startup
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@177 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
4a9239f808
commit
fb962b67db
8 changed files with 34 additions and 10 deletions
|
|
@ -54,6 +54,9 @@ struct pa_module* pa_module_load(struct pa_core *c, const char *name, const char
|
|||
|
||||
assert(c && name);
|
||||
|
||||
if (c->disallow_module_loading)
|
||||
goto fail;
|
||||
|
||||
m = pa_xmalloc(sizeof(struct pa_module));
|
||||
|
||||
m->name = pa_xstrdup(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue