ldb: Move ldb_(un)pack_data into ldb_module.h for testing
authorAdrian Cochrane <adrianc@catalyst.net.nz>
Mon, 31 Aug 2015 21:53:12 +0000 (09:53 +1200)
committerGarming Sam <garming@samba.org>
Fri, 4 Dec 2015 05:08:29 +0000 (06:08 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11602
Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/ldb/include/ldb_module.h
lib/ldb/include/ldb_private.h

index 34e33c0ec559d98e2524e0ea421e7b316b9fdf37..f00ba50dc0eebc7ea7c0c3189690d2624987a2e7 100644 (file)
@@ -382,4 +382,16 @@ struct ldb_extended_match_rule
 int ldb_register_extended_match_rule(struct ldb_context *ldb,
                                     const struct ldb_extended_match_rule *rule);
 
+/*
+ * these pack/unpack functions are exposed in the library for use by
+ * ldb tools like ldbdump and for use in tests,
+ * but are not part of the public API
+ */
+int ldb_pack_data(struct ldb_context *ldb,
+                 const struct ldb_message *message,
+                 struct ldb_val *data);
+int ldb_unpack_data(struct ldb_context *ldb,
+                   const struct ldb_val *data,
+                   struct ldb_message *message);
+
 #endif
index eef5e1b3f3749d482632a00ac7a946615aba976d..26a9d426afb857103c6008e29f0f34b3a1fb14a7 100644 (file)
@@ -200,17 +200,6 @@ struct ldb_ldif *ldb_ldif_read_file_state(struct ldb_context *ldb,
 char *ldb_ldif_write_redacted_trace_string(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, 
                                           const struct ldb_ldif *ldif);
 
-/*
- * these pack/unpack functions are exposed in the library for use by
- * ldb tools like ldbdump, but are not part of the public API
- */
-int ldb_pack_data(struct ldb_context *ldb,
-                 const struct ldb_message *message,
-                 struct ldb_val *data);
-int ldb_unpack_data(struct ldb_context *ldb,
-                   const struct ldb_val *data,
-                   struct ldb_message *message);
-
 /*
  * Get the LDB context in use on an LDB DN.
  *