diff options
author | Gerald Carter <jerry@samba.org> | 2002-07-19 18:49:44 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-07-19 18:49:44 +0000 |
commit | 9fe3bd1259e7bda901f7a264bd7fc88c72d2112f (patch) | |
tree | 7099006b7ed3b3dbfabe514d84183cd4bda609ac /source3/registry/reg_cachehook.c | |
parent | 80c8fe63d2d2149ff9d2294da281d61a683e27ea (diff) | |
download | samba-9fe3bd1259e7bda901f7a264bd7fc88c72d2112f.tar.gz samba-9fe3bd1259e7bda901f7a264bd7fc88c72d2112f.tar.bz2 samba-9fe3bd1259e7bda901f7a264bd7fc88c72d2112f.zip |
* refactored registry operations some. subkey lists and
registry values are now passed around in containers
(REGSUBKEY_CTR & REGVAL_CTR) which each possess a TALLOC_CTX.
* removed subkey_specific_fn() from REGISTRY_OPS. Is implemented
in the form of a wrapper
* temporarily broke the printing registry ops.
* implemented inheritence for the data_p of nodes in a SORTED_TREE
* All REGISTRY_KEY instances now store a valid REGISTRY_HOOK since
the default REGOSTRY_OPS structure is stored in the root of the
cache_tree.
* Probably some other change I forgot.... T
(This used to be commit e7b55e8f017e638342d9c8c1a9259000745a0298)
Diffstat (limited to 'source3/registry/reg_cachehook.c')
-rw-r--r-- | source3/registry/reg_cachehook.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c index daf2f24180..346ba20eb7 100644 --- a/source3/registry/reg_cachehook.c +++ b/source3/registry/reg_cachehook.c @@ -26,6 +26,8 @@ #define DBGC_CLASS DBGC_RPC_SRV static SORTED_TREE *cache_tree; +extern REGISTRY_OPS regdb_ops; /* these are the default */ +static REGISTRY_HOOK default_hook = { KEY_TREE_ROOT, ®db_ops }; /********************************************************************** Initialize the cache tree @@ -33,7 +35,7 @@ static SORTED_TREE *cache_tree; BOOL reghook_cache_init( void ) { - cache_tree = sorted_tree_init( NULL, NULL ); + cache_tree = sorted_tree_init( &default_hook, NULL, NULL ); return ( cache_tree == NULL ); } |