summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf/smbconf.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-09 22:21:15 +0200
committerMichael Adam <obnox@samba.org>2008-04-10 01:29:01 +0200
commit87ca44723181900799985d7c3c1d02863fb8da71 (patch)
tree1f00c23167114a04277b2ad192e177c408bb40a4 /source3/lib/smbconf/smbconf.c
parent1321dda51bf3fd208d77cebafc14fec2800cc10d (diff)
downloadsamba-87ca44723181900799985d7c3c1d02863fb8da71.tar.gz
samba-87ca44723181900799985d7c3c1d02863fb8da71.tar.bz2
samba-87ca44723181900799985d7c3c1d02863fb8da71.zip
libsmbconf: add delete_includes mehtod to the api (and backend implementations)
Michael (This used to be commit daef50e54d58a6684b6a890ebf523ca6245f0290)
Diffstat (limited to 'source3/lib/smbconf/smbconf.c')
-rw-r--r--source3/lib/smbconf/smbconf.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/lib/smbconf/smbconf.c b/source3/lib/smbconf/smbconf.c
index 7c24c55781..541b163bfb 100644
--- a/source3/lib/smbconf/smbconf.c
+++ b/source3/lib/smbconf/smbconf.c
@@ -389,3 +389,25 @@ WERROR smbconf_set_global_includes(struct smbconf_ctx *ctx,
return werr;
}
+
+
+WERROR smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service)
+{
+ if (!smbconf_share_exists(ctx, service)) {
+ return WERR_NO_SUCH_SERVICE;
+ }
+
+ return ctx->ops->delete_includes(ctx, service);
+}
+
+WERROR smbconf_delete_global_includes(struct smbconf_ctx *ctx)
+{
+ WERROR werr;
+
+ werr = smbconf_global_check(ctx);
+ if (W_ERROR_IS_OK(werr)) {
+ werr = smbconf_delete_includes(ctx, GLOBAL_NAME);
+ }
+
+ return werr;
+}