summaryrefslogtreecommitdiffstats
path: root/server/util/btreemap.h
Commit message (Collapse)AuthorAgeFilesLines
* Refactor creation of domain_map into confdbStephen Gallagher2009-02-271-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.
* Enhancements and bugfixes to util/btreemap.c 1) Remove useless and unused ↵Stephen Gallagher2009-02-161-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 *)
* Minor change to btreemap to use an enum for the return codes of ↵Stephen Gallagher2009-01-091-1/+8
| | | | btreemap_search_key.
* btreemap.c and btreemap.h seem to be missing from an earlier commit. Adding ↵Stephen Gallagher2008-11-191-0/+32
them.