summaryrefslogtreecommitdiff
path: root/common/dhash/dhash_test.c
AgeCommit message (Collapse)AuthorFilesLines
2010-01-20Split off libdhash into a shared libraryStephen Gallagher1-490/+0
Right now, the pkg-config checks for the system version of libdhash are forcibly disabled, requiring the SSSD to build it from its own tree. In the future, when we split the libraries off from the SSSD, it will be easy to switch this check to the external library.
2009-12-08dhash: Add private pointer for delete callbackSimo Sorce1-2/+3
Also pass a flag to the delete callback to tell it if this is a normal entry removal or we are cleaning up the tbale definitively.
2009-12-08Change dhash API to be talloc-friendlySimo Sorce1-1/+1
2009-10-29Clean up warnings in dhash testsStephen Gallagher1-3/+3
2009-04-22add dynamic hash table data structure implementationJohn Dennis1-0/+489
Apply suggested fixes by Simo after code review * return statements no longer use () unless it's an expression * remove all use of assert() in library * use bool,true,false instead of int,TRUE,FALSE * add check for NULL hash table in public entry points * example code in header file now a seperate file * assure consistent use of unsigned long data type * add more debugging support * break out generation of integer key into convert_key() function * table parameters now tunable rather than hardcoded * table can now accept custom alloc()/free() functions * add function create_table_ex() to pass extra table parameters * remove MUL(), DIV(), MOD() macros * hash statistics now separate struct which can be queried * test program now accepts tuning parameters, iteration count; has better error checking and reporting fix min/max load factor comman line args in test program