diff options
author | Michael Adam <obnox@samba.org> | 2009-02-26 02:54:50 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-02-26 13:22:55 +0100 |
commit | 97508eefb78598fcf15c07b4c0cb92dbf21c30f7 (patch) | |
tree | 1dbe3cfc92c06c47135900debb2b0bafb22b27dd /source3/registry | |
parent | 61bdfd09edbdea38486bbca3c148d224c7d523fc (diff) | |
download | samba-97508eefb78598fcf15c07b4c0cb92dbf21c30f7.tar.gz samba-97508eefb78598fcf15c07b4c0cb92dbf21c30f7.tar.xz 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')
-rw-r--r-- | source3/registry/reg_dispatcher.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/registry/reg_dispatcher.c b/source3/registry/reg_dispatcher.c index 555e821bf1a..106d38e9a53 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 |