In reg_backend_netlogon_params, delegate fetch_subkeys() to regdb.
authorMichael Adam <obnox@samba.org>
Sat, 19 Jan 2008 21:39:33 +0000 (22:39 +0100)
committerMichael Adam <obnox@samba.org>
Sun, 20 Jan 2008 01:03:38 +0000 (02:03 +0100)
In order to be able to open the netlogon_params key (the new backend replacing
the former dynamic overlay), certain methods need to be provided. Delegate these
to the regdb backend (like e.g. the smbconf backend does).

Michael
(This used to be commit 9261b2c4bf48e133eecda9ec0095bd8edf20326c)

source3/registry/reg_backend_netlogon_params.c

index 507d2c5df8d3447983572d2112a004b63a56f0b7..ff5a33e6e44ee1ebb0195d11ad57c10e05e74bbc 100644 (file)
@@ -29,6 +29,7 @@
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_REGISTRY
 
+extern REGISTRY_OPS regdb_ops;
 
 static int netlogon_params_fetch_reg_values(const char *key,
                                            REGVAL_CTR *regvals)
@@ -44,7 +45,13 @@ static int netlogon_params_fetch_reg_values(const char *key,
        return regval_ctr_numvals( regvals );
 }
 
+static int netlogon_params_fetch_subkeys(const char *key,
+                                        REGSUBKEY_CTR *subkey_ctr)
+{
+       return regdb_ops.fetch_subkeys(key, subkey_ctr);
+}
 
 REGISTRY_OPS netlogon_params_reg_ops = {
        .fetch_values = netlogon_params_fetch_reg_values,
+       .fetch_subkeys = netlogon_params_fetch_subkeys,
 };