summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf/smbconf.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-10-20 23:52:02 +0200
committerMichael Adam <obnox@samba.org>2008-10-27 13:02:38 +0100
commit9299d53ef95a72f10d3ccde175ae5c90d2c95333 (patch)
tree6929032dbab324ef84d7454bfd038e4ad5660ae8 /source3/lib/smbconf/smbconf.c
parent0ee8992331ea52e3be64a21f87a3495fe22c4112 (diff)
downloadsamba-9299d53ef95a72f10d3ccde175ae5c90d2c95333.tar.gz
samba-9299d53ef95a72f10d3ccde175ae5c90d2c95333.tar.bz2
samba-9299d53ef95a72f10d3ccde175ae5c90d2c95333.zip
[s3]libsmbconf: add backend_requires_messaging() method to libsmbconf.
In a clustered environment, the registry backend needs messaging to be set up since ctdb requires this. Michael
Diffstat (limited to 'source3/lib/smbconf/smbconf.c')
-rw-r--r--source3/lib/smbconf/smbconf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/smbconf/smbconf.c b/source3/lib/smbconf/smbconf.c
index 77a438048f..f0188380a0 100644
--- a/source3/lib/smbconf/smbconf.c
+++ b/source3/lib/smbconf/smbconf.c
@@ -43,6 +43,15 @@ static WERROR smbconf_global_check(struct smbconf_ctx *ctx)
**********************************************************************/
/**
+ * Tell whether the backend requires messaging to be set up
+ * for the backend to work correctly.
+ */
+bool smbconf_backend_requires_messaging(struct smbconf_ctx *ctx)
+{
+ return ctx->ops->requires_messaging(ctx);
+}
+
+/**
* Close the configuration.
*/
void smbconf_shutdown(struct smbconf_ctx *ctx)