summaryrefslogtreecommitdiff
path: root/server/util/btreemap.h
AgeCommit message (Collapse)AuthorFilesLines
2009-10-06Remove unused btreemap codeStephen Gallagher1-41/+0
We have converted to using dhash in place of btreemap everywhere in the code.
2009-02-27Refactor creation of domain_map into confdbStephen Gallagher1-1/+1
The NSS provider, the Data Provider backends and the InfoPipe all need access to the domain map provided by the confdb. Instead of reimplimenting it in multiple places, it is now provided in a pair of helper functions from the confdb. confdb_get_domains() returns a domain map by reference. Always returns the most up-to-date set of domains from the confdb. confdb_get_domains_list() returns an array of strings of all the domain names. Always returns the most up-to-date set of domains from the confdb. This patch also modifies the btreemap_get_keys() function to better handle memory and report allocation failures.
2009-02-16Enhancements and bugfixes to util/btreemap.c 1) Remove useless and unused ↵Stephen Gallagher1-4/+6
btreemap_new() 2) Fix potentially serious memory allocation error. btreemap now requires a TALLOC_CTX to be passed in for assignment to the top node of the tree. Previously it was creating a new root TALLOC_CTX 3) Add new function btreemap_get_keys that will return a sorted array (newly allocated using talloc_realloc()) of keys (const void *) 4) Change the btreemap to use (const void *) keys instead of (void *)
2009-01-09Minor change to btreemap to use an enum for the return codes of ↵Stephen Gallagher1-1/+8
btreemap_search_key.
2008-11-19btreemap.c and btreemap.h seem to be missing from an earlier commit. Adding ↵Stephen Gallagher1-0/+32
them.