lib/param: Add hook that allows modification of default settings.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 15 Mar 2015 23:30:27 +0000 (12:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 16 Mar 2015 02:00:06 +0000 (03:00 +0100)
commit782e8d6aabd6535448992f1ee69f25c71e8f2b6c
tree0975a25afbf0e10f8a305187f022f4c7dfe48a50
parenta549b45ed7747e8817ff07e8e755ef04edb35574
lib/param: Add hook that allows modification of default settings.

This is useful for reducing the amount of configuration necessary for
OpenChange.

The hook is ideally registered from a plugin initialization function,
so that it automatically gets used whenever the plugin is installed.

This makes it possible for plugins to e.g. extend the default value for
the list of enabled dcerpc endpoint services.

Like all our interfaces, callers are expected to use this API
responsibly. For example, OpenChange should only enable its DCE/RPC
interface if it has been provisioned.

Change-Id: Ic8bacdd8b4c92a2a4b97cfa1a50dc41365b78071
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/param/loadparm.c
lib/param/param.h