s3:registry: add a delete_subkey method to the backend ops.
[ira/wip.git] / source3 / registry / reg_dispatcher.c
index 555e821bf1a33a3c71ed416d23a0e0336f9efaa6..106d38e9a537d0088c662aa356d9676b8826714b 100644 (file)
@@ -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