]> code.delx.au - pulseaudio/blobdiff - polyp/module.c
add option to disallow module loading after startup
[pulseaudio] / polyp / module.c
index eb8a8acd608878c9937de5865d889ca9d355982d..fc71495377b69d1146f3f28f856ca63bae34b498 100644 (file)
@@ -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);