summaryrefslogtreecommitdiff
path: root/source3/registry/reg_dispatcher.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-02-26 02:54:50 +0100
committerMichael Adam <obnox@samba.org>2009-02-26 13:22:55 +0100
commit97508eefb78598fcf15c07b4c0cb92dbf21c30f7 (patch)
tree1dbe3cfc92c06c47135900debb2b0bafb22b27dd /source3/registry/reg_dispatcher.c
parent61bdfd09edbdea38486bbca3c148d224c7d523fc (diff)
downloadsamba-97508eefb78598fcf15c07b4c0cb92dbf21c30f7.tar.gz
samba-97508eefb78598fcf15c07b4c0cb92dbf21c30f7.tar.bz2
samba-97508eefb78598fcf15c07b4c0cb92dbf21c30f7.zip
s3:registry: add a delete_subkey method to the backend ops.
This is to provide a more atomic means of deleting a subkey of a key. Michael
Diffstat (limited to 'source3/registry/reg_dispatcher.c')
-rw-r--r--source3/registry/reg_dispatcher.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/registry/reg_dispatcher.c b/source3/registry/reg_dispatcher.c
index 555e821bf1..106d38e9a5 100644
--- a/source3/registry/reg_dispatcher.c
+++ b/source3/registry/reg_dispatcher.c
@@ -109,6 +109,15 @@ WERROR create_reg_subkey(REGISTRY_KEY *key, const char *subkey)
return WERR_NOT_SUPPORTED;
}
+WERROR delete_reg_subkey(REGISTRY_KEY *key, const char *subkey)
+{
+ if (key->ops && key->ops->delete_subkey) {
+ return key->ops->delete_subkey(key->name, subkey);
+ }
+
+ return WERR_NOT_SUPPORTED;
+}
+
/***********************************************************************
High level wrapper function for enumerating registry subkeys
Initialize the TALLOC_CTX if necessary