From 6dd68d897865bd2518a6a71753ca0bc76d51b37e Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 23 May 2024 09:36:57 +1200 Subject: [PATCH] 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 --- lib/ldb/include/ldb.h | 10 ---------- lib/ldb/include/ldb_private.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) 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 */ -- 2.47.3