diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-03 22:44:55 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-03 22:44:55 +0000 |
commit | fb962b67dbeb54d1cdd453c6f902b7c679b9197f (patch) | |
tree | 8e74e21d2a976ca7c328ed698edeb0591dcea66e /polyp/module.c | |
parent | 4a9239f808b08cf391ded6052bab9cc499e4b505 (diff) |
add option to disallow module loading after startup
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@177 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module.c')
-rw-r--r-- | polyp/module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/polyp/module.c b/polyp/module.c index eb8a8acd..fc714953 100644 --- a/polyp/module.c +++ b/polyp/module.c @@ -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); |