]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb: move struct ldb_debug_ops to ldb_private.h
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 22 May 2024 21:40:00 +0000 (09:40 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 23 May 2024 00:19:30 +0000 (00:19 +0000)
Only accessed through struct ldb_context -> debug_ops, which is already private.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu May 23 00:19:30 UTC 2024 on atb-devel-224

lib/ldb/include/ldb.h
lib/ldb/include/ldb_private.h

index 7b3c362482f0baf0e03c6528bf25d9d780294b76..0a93b5601807b9c7bd3ab31768e76292d015dc1f 100644 (file)
@@ -223,17 +223,6 @@ enum ldb_debug_level {LDB_DEBUG_FATAL, LDB_DEBUG_ERROR,
 /* alias for something that's not a fatal error but we really want to log */
 #define LDB_DEBUG_ALWAYS_LOG  LDB_DEBUG_FATAL
 
-/**
-  the user can optionally supply a debug function. The function
-  is based on the vfprintf() style of interface, but with the addition
-  of a severity level
-*/
-struct ldb_debug_ops {
-       void (*debug)(void *context, enum ldb_debug_level level,
-                     const char *fmt, va_list ap) PRINTF_ATTRIBUTE(3,0);
-       void *context;
-};
-
 /**
    Flag value for database connection mode.
 
index e51e6d630afd05dd8ab13283b651af1ae758a9a7..c21195a2d303a5b7a8d8760a480f64cb9d2f2778 100644 (file)
@@ -103,6 +103,17 @@ struct ldb_schema {
        const char *GUID_index_dn_component;
 };
 
+/**
+  the user can optionally supply a debug function. The function
+  is based on the vfprintf() style of interface, but with the addition
+  of a severity level
+*/
+struct ldb_debug_ops {
+       void (*debug)(void *context, enum ldb_debug_level level,
+                     const char *fmt, va_list ap) PRINTF_ATTRIBUTE(3,0);
+       void *context;
+};
+
 /**
   The user can optionally supply a custom utf8 functions,
   to handle comparisons and casefolding.