s3:registry replace typedef REGISTRY_HOOK by struct registry_hook.
authorMichael Adam <obnox@samba.org>
Mon, 23 Mar 2009 22:05:30 +0000 (23:05 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 27 Apr 2009 09:21:04 +0000 (11:21 +0200)
Michael

source3/include/reg_objects.h
source3/registry/reg_init_full.c

index a3f9c9c5918dd3bcd9489b347e422aff4654b746..5a4f516402579a1ae1e82391004e8c8432a30148 100644 (file)
@@ -145,10 +145,10 @@ typedef struct {
        bool    (*values_need_update)(struct regval_ctr *values);
 } REGISTRY_OPS;
 
-typedef struct {
+struct registry_hook {
        const char      *keyname;       /* full path to name of key */
        REGISTRY_OPS    *ops;           /* registry function hooks */
-} REGISTRY_HOOK;
+};
 
 
 /* structure to store the registry handles */
index b5a06f25826521414e0d0af823fa4e1bf8134a6b..206dcd140bfe6268ca8fbc8b35729bba6d04280a 100644 (file)
@@ -37,10 +37,10 @@ extern REGISTRY_OPS current_version_reg_ops;
 extern REGISTRY_OPS perflib_reg_ops;
 extern REGISTRY_OPS regdb_ops;         /* these are the default */
 
-/* array of REGISTRY_HOOK's which are read into a tree for easy access */
+/* array of registry_hook's which are read into a tree for easy access */
 /* #define REG_TDB_ONLY                1 */
 
-REGISTRY_HOOK reg_hooks[] = {
+struct registry_hook reg_hooks[] = {
 #ifndef REG_TDB_ONLY 
   { KEY_PRINTING,              &printing_ops },
   { KEY_PRINTING_2K,           &printing_ops },
@@ -58,7 +58,7 @@ REGISTRY_HOOK reg_hooks[] = {
 };
 
 /***********************************************************************
- Open the registry database and initialize the REGISTRY_HOOK cache
+ Open the registry database and initialize the registry_hook cache
  with all available backens.
  ***********************************************************************/