s3:registry: add helper function regdb_delete_sorted_subkeys()
authorMichael Adam <obnox@samba.org>
Thu, 30 Jun 2011 12:36:35 +0000 (14:36 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 9 Aug 2011 14:57:52 +0000 (16:57 +0200)
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 2b162db6e9cc3e098f339516bbda719618664a83)

source3/registry/reg_backend_db.c

index 11bbe7ed36a30d1bbb3c7b317c66b27751f1ef2b..9df2b50c77f86da7a11f1a7a618ef08f95824bb7 100644 (file)
@@ -711,6 +711,13 @@ static WERROR regdb_delete_subkeylist(struct db_context *db, const char *keyname
        return regdb_delete_key_with_prefix(db, keyname, NULL);
 }
 
+static WERROR regdb_delete_sorted_subkeys(struct db_context *db,
+                                         const char *keyname)
+{
+       return regdb_delete_key_with_prefix(db, keyname, REG_SORTED_SUBKEYS_PREFIX);
+}
+
+
 static WERROR regdb_delete_key_lists(struct db_context *db, const char *keyname)
 {
        WERROR werr;