summaryrefslogtreecommitdiff
path: root/lib/ldb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2012-10-31 16:06:03 +1100
committerAndrew Tridgell <tridge@samba.org>2012-11-01 15:40:41 +1100
commit30ffdda45bd3ae602b453c9c1bbdb77ea3de8a8d (patch)
tree2859583eec07abce06678d464aea79501dd3e554 /lib/ldb/include
parentfc47b0d03c577730ce0ef9e09092f80c0712d5d0 (diff)
downloadsamba-30ffdda45bd3ae602b453c9c1bbdb77ea3de8a8d.tar.gz
samba-30ffdda45bd3ae602b453c9c1bbdb77ea3de8a8d.tar.bz2
samba-30ffdda45bd3ae602b453c9c1bbdb77ea3de8a8d.zip
ldb: fixed callers for ldb_pack_data() and ldb_unpack_data()
with ltdb_pack_data() and ltdb_unpack_data() now moved into common, we need to increase the minor version and fixup callers of the API Note that this relies on struct ldb_val being the same shape as TDB_DATA, in much the same way as we rely on ldb_val and DATA_BLOB being the same shape. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/ldb/include')
-rw-r--r--lib/ldb/include/ldb_private.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/ldb/include/ldb_private.h b/lib/ldb/include/ldb_private.h
index 7de5ab73da..526bf5e491 100644
--- a/lib/ldb/include/ldb_private.h
+++ b/lib/ldb/include/ldb_private.h
@@ -194,4 +194,15 @@ 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);
+
#endif