From 48d8eee7522e1c1c45a9353ab77c96c20321f143 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 4 Feb 2006 01:27:47 +0000 Subject: r13325: let samba register it's own utf8 aware functions in ldb (This used to be commit 12faf556833807d3f2aa4360c54e10583ac77fed) --- source4/lib/ldb/include/ldb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index a8c2d176b5..7c39aeeeb9 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -1112,6 +1112,14 @@ int ldb_set_debug(struct ldb_context *ldb, const char *fmt, va_list ap), void *context); +/** + this allows the user to set custom utf8 function for error reporting +*/ +void ldb_set_utf8_fns(struct ldb_context *ldb, + void *context, + int (*cmp)(void *, const char *, const char *), + char *(*casefold)(void *, void *, const char *)); + /** this sets up debug to print messages on stderr */ -- cgit