summaryrefslogtreecommitdiff
path: root/ccan/ntdb
AgeCommit message (Collapse)Author
2015-06-01ntdb: don't overlap with test filenames.Rusty Russell
This may have been causing a travis failure. Let's see! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2015-05-28asearch: Add context pointer to asearch comparison callbackDavid Gibson
asearch, like the standard library bsearch, takes a comparison callback. Like bsearch() that callback doesn't include a user supplied context pointer. As well as being generally limiting, that makes the comparison functions used by asearch gratuitously different from those used by the asort module. This patch alters this. Note that this is an incompatible change to the asearch interface. I think this is worth it to correct the oversight, but others might disagree. At present the only user within ccan is ntdb, which is corrected to match. This means actually supplying a binary search implementation, rather than relying on bsearch() from the standard library. We follow the lead of the asort module and steal^H^H^H^H^Hadapt the implementation from glibc. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2015-03-20ntdb: fix up tests.Rusty Russell
Mainly include path fixes. Also Samba's unit tests were enhanced to detect the prefixes helpapi and helprun to indicate an object was to be linked against only api/run tests. We hack around that by #including the helper code instead. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2015-03-20ntdb: assume HAVE_CCAN in header.Rusty Russell
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2015-03-20ntdb: fix up _info.Rusty Russell
It was missing dependency information, and a description of ntdb. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2015-03-18ntdb: move python bindings to subdir.Rusty Russell
The other option would be to require Python.h, which seems overkill. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2015-03-18ntdb: remove config.hRusty Russell
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2015-03-16ntdb: add _info fileDavid Disseldorp
The Authors entries were added based on source file copyright statements. Full details can be found via the upstream Samba Git repository. Signed-off-by: David Disseldorp <ddiss@suse.de>
2015-03-16ntdb: link to common LGPL-3 licenseDavid Disseldorp
Signed-off-by: David Disseldorp <ddiss@suse.de>
2015-03-16ntdb: build core components via static MakefileDavid Disseldorp
As part of Samba, ntdb was built using the Waf build system. As part of ccan, convert this to a simple Makefile, and add a static config.h. The Makefile only builds core ntdb components for now - libntdb and tools. Signed-off-by: David Disseldorp <ddiss@suse.de>
2015-03-16ntdb: next-generation trivial key-value databaseDavid Disseldorp
ntdb is a partial rewrite of Samba's Trivial Database, providing > 4GB database scalability and an improved API. Obtained from the Samba repository at git://git.samba.org/samba.git, as of bd13405e8570e9a5942165a8c52a2bc3fdc9d96e. See Samba's Git changelog for authorship details. Signed-off-by: David Disseldorp <ddiss@suse.de>