ldb: move struct ldb_utf8_fns to ldb_private.h
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 22 May 2024 21:36:57 +0000 (09:36 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2024 23:12:32 +0000 (23:12 +0000)
It is only accessed via ldb functions that find it on the already-private
struct ldb_context.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/include/ldb.h
lib/ldb/include/ldb_private.h

index ccf4f7779456a05e3f7584015aaa4fb2ae09fa6c..7b3c362482f0baf0e03c6528bf25d9d780294b76 100644 (file)
@@ -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.
 
index ddfcec1a29561933d5f2b31f6414f2a5a4f41905..e51e6d630afd05dd8ab13283b651af1ae758a9a7 100644 (file)
@@ -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
 */