summaryrefslogtreecommitdiff
path: root/source3/registry/reg_cachehook.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-25s3:registry: extract the reg_cachehook prototypes into their own header.Michael Adam1-0/+1
And use them only where necessary.
2010-05-25s3:registry: add C to reg_cachehook, confessing considerable changes in 2008Michael Adam1-0/+1
2010-05-18s3-registry: only include registry headers when really needed.Günther Deschner1-0/+1
Guenther
2010-02-13s3: Remove unused comparison fn from "struct sorted_tree"Volker Lendecke1-1/+1
2010-02-13s3: SORTED_TREE -> struct sorted_treeVolker Lendecke1-2/+2
2009-04-27s3:registry: replace typedef REGISTRY_OPS by struct registry_opsMichael Adam1-5/+5
Michael
2008-04-13registry: change reghook_cache_add() to return WERROR instead of boolMichael Adam1-3/+3
Michael (This used to be commit e65a999989c97c4c7b0af5093e0e89583691e9a8)
2008-04-13registry cachehook: change helper function keyname_to_path() to return WERROR.Michael Adam1-18/+32
Michael (This used to be commit 78bb005ee45e7a0be24b5222c3f878058b5cd8ea)
2008-04-13adt_tree: change pathtree_add to return WERR instead of bool.Michael Adam1-3/+3
Michael (This used to be commit da45fb92f69221758f36db4cbb7d871e3ce60718)
2008-04-13registry cachehook: revert logic to make fast path more obvious and reduce ↵Michael Adam1-8/+9
indent. Michael (This used to be commit e97d558c5660e6d235b62528f5527a62ac1252d7)
2008-04-13registry: change reghook_cache_init() to return WERROR and use it in the ↵Michael Adam1-6/+7
callers. Michael (This used to be commit 2f4ca62dce50225d67ba8643afba4199e1845c5f)
2008-04-13registry cachehook: compare cache_tree against NULL, not 0.Michael Adam1-1/+1
Michael (This used to be commit 4bfc0be55f2a436a9c687ab6ad86e704fcb753d6)
2008-04-13registry cachehook: add talloc failed debug messages.Michael Adam1-0/+6
Michael (This used to be commit 9841ee7fd429c7ff367dbb43b754cd5b6f53c065)
2008-04-13registry cachehook: eliminate a couple trailing spaces (empty lines).Michael Adam1-4/+4
Michael (This used to be commit c9f01aee37165216fa8a5331c64dd93963b38802)
2008-04-13registry cachehook: fix memleak (to talloc_tos()): free key at the end.Michael Adam1-1/+4
Michael (This used to be commit 3f5955d361da5278773b46dccb34c8f63eb04157)
2008-04-13registry cachehook: refactor normalization of keyname out.Michael Adam1-29/+23
Michael (This used to be commit acb9c98dff7dac5e0688a04dbf6d63a7a7f67fd2)
2008-04-13registry: adapt copied function header comments.Michael Adam1-2/+2
Michael (This used to be commit 2e762be0db7a098b6da09756a9c9dfa3931ca3c6)
2008-04-13registry: remove the REGISTRY_HOOKS layer from the reghook cache.Michael Adam1-13/+12
There is no need to save the keyname again, we only need to get the REGISTRY_OPS out of the pathtree. Furthermore, this makes life easier, since we can now pass in keynames as temporarily allocated strings. Michael (This used to be commit 2f9ee2f782c77ed99669af5ac2ba40cb0978f0da)
2008-01-20Add some debugging output to reg_cachehook.cMichael Adam1-1/+10
Michael (This used to be commit 2a278928805f4497e8afa28bdca433cbedc4a8d7)
2008-01-20Fix registering Registry backends in reghook_cache_add().Michael Adam1-1/+1
This was broken in 331c0d6216e1a1607a49ed7eb4078e10138ec16a (pstring removal). Michael (This used to be commit 7d1e986f3a5ab316a8501ddaca1ba1f0867b4531)
2008-01-03Return existsing cache_tree if it has already been initialized.Michael Adam1-4/+6
So reghook_cache_init() does not leak memory when called more than once. Also, fix the return value while we are at it. Michael (This used to be commit 25f571f40a630bff5a47bba6b01e42d4e0ffed66)
2007-11-26Remove pstrings from nsswitch/ and registry/Jeremy Allison1-10/+16
Jeremy. (This used to be commit 331c0d6216e1a1607a49ed7eb4078e10138ec16a)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-2/+2
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25417: Use DBGC_REGISTRY class.Günther Deschner1-1/+1
Guenther (This used to be commit 43ca04918a5a1b2379083dc624b346ceb8476a38)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell1-2/+1
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r17333: Some C++ warningsVolker Lendecke1-2/+2
(This used to be commit be9aaffdaccae06c8c035eaf31862e34b7cfbe38)
2007-10-10r10012: fix build breakage caused by forgotten commit in local treeGerald Carter1-1/+1
(This used to be commit 8c819cd0c670acfe7be2ecd927ef8de6fa5226f2)
2007-10-10r7440: * merge registry server changes from trunk (so far) for moreGerald Carter1-1/+1
printmig.exe work * merge the sys_select_signal(char c) change from trunk in order to keeo the winbind code in sync (This used to be commit a112c5570a7f8ddddde1af0fa665f40a6067e8cf)
2007-10-10r6942: * merging the registry changes back to the 3.0 treeGerald Carter1-1/+1
* removing the testprns tool (This used to be commit 81ffb0dbbbd244623507880c323a3c37e2b8dc4d)
2007-10-10r5517: code cleanup; rename the sorted_tree to pathtree (used by registry code)Gerald Carter1-4/+5
I was going to use this for tracking dfs mounts in smbclient but found another way. Still the cleanup is valid so commiting it. should be minimally disruptive since it is not widely used. (This used to be commit 00738dca3b07083c91545910486a1f30f2b17281)
2007-10-10r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison1-1/+1
allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
2002-07-20enumeration of printers keys ( no data yet ) via the registryGerald Carter1-1/+6
functions now works :-) (This used to be commit c5768538f6cf6ee824bc6e105a3391bbc2ea8e46)
2002-07-20fixed a logic error in the sorted_tree_find_child() routineGerald Carter1-0/+4
that caused a valid search to fail. The printing registry view now works again. (This used to be commit 2050859f03493d5135984ce1e42baf8f1f2566b9)
2002-07-19fixed seg fault in registry frontend caused by trying toGerald Carter1-3/+8
use a destroyed TALLOC_CTX* (This used to be commit 432b9f8d7c20fbf3b2a0906c8a93272abbe43fb6)
2002-07-19* refactored registry operations some. subkey lists andGerald Carter1-1/+3
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)
2002-07-18virtual registry framework with initial printing hooks.Gerald Carter1-0/+96
(This used to be commit a43d9788fa8823d678ee72470421b980165ec2b0)