s3:registry: move definition of registry_hook to reg_init_full.c - it's only user
authorMichael Adam <obnox@samba.org>
Mon, 24 May 2010 22:31:01 +0000 (00:31 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 25 May 2010 08:35:27 +0000 (10:35 +0200)
source3/include/reg_objects.h
source3/registry/reg_init_full.c

index 00ba68bf5ca03b227a29ee78d980b9072b8a3788..770eed64c2d270c59fc75c9b6e67652eda889b66 100644 (file)
@@ -145,11 +145,6 @@ struct registry_ops {
        bool    (*values_need_update)(struct regval_ctr *values);
 };
 
-struct registry_hook {
-       const char      *keyname;       /* full path to name of key */
-       struct registry_ops     *ops;   /* registry function hooks */
-};
-
 
 /* structure to store the registry handles */
 
index 265fed30ca51e9607c48cba4b65ee224a436b17d..8c012e89eebc5a3244167c7491f7bc67070517d1 100644 (file)
@@ -45,6 +45,11 @@ extern struct registry_ops regdb_ops;                /* these are the default */
 /* array of registry_hook's which are read into a tree for easy access */
 /* #define REG_TDB_ONLY                1 */
 
+struct registry_hook {
+       const char      *keyname;       /* full path to name of key */
+       struct registry_ops     *ops;   /* registry function hooks */
+};
+
 struct registry_hook reg_hooks[] = {
 #ifndef REG_TDB_ONLY 
   { KEY_PRINTING,              &printing_ops },