From: Douglas Bagnall Date: Wed, 22 May 2024 21:36:57 +0000 (+1200) Subject: ldb: move struct ldb_utf8_fns to ldb_private.h X-Git-Tag: tdb-1.4.11~552 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6dd68d897865bd2518a6a71753ca0bc76d51b37e;p=thirdparty%2Fsamba.git ldb: move struct ldb_utf8_fns to ldb_private.h It is only accessed via ldb functions that find it on the already-private struct ldb_context. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb/include/ldb.h b/lib/ldb/include/ldb.h index ccf4f777945..7b3c362482f 100644 --- a/lib/ldb/include/ldb.h +++ b/lib/ldb/include/ldb.h @@ -234,16 +234,6 @@ struct ldb_debug_ops { void *context; }; -/** - The user can optionally supply a custom utf8 functions, - to handle comparisons and casefolding. -*/ -struct ldb_utf8_fns { - void *context; - char *(*casefold)(void *context, TALLOC_CTX *mem_ctx, const char *s, size_t n); - int (*casecmp)(void *context, const struct ldb_val *v1, const struct ldb_val *v2); -}; - /** Flag value for database connection mode. diff --git a/lib/ldb/include/ldb_private.h b/lib/ldb/include/ldb_private.h index ddfcec1a295..e51e6d630af 100644 --- a/lib/ldb/include/ldb_private.h +++ b/lib/ldb/include/ldb_private.h @@ -103,6 +103,16 @@ struct ldb_schema { const char *GUID_index_dn_component; }; +/** + The user can optionally supply a custom utf8 functions, + to handle comparisons and casefolding. +*/ +struct ldb_utf8_fns { + void *context; + char *(*casefold)(void *context, TALLOC_CTX *mem_ctx, const char *s, size_t n); + int (*casecmp)(void *context, const struct ldb_val *v1, const struct ldb_val *v2); +}; + /* every ldb connection is started by establishing a ldb_context */