summaryrefslogtreecommitdiff
path: root/source4/lib/util
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-30 22:25:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:03:13 -0500
commit09c188e7353a74d05a674935c85e548bd09073ae (patch)
tree63f49d3b5851aa13193444c5e17a5e979bb745ec /source4/lib/util
parent4fa13976a2a2ef72a74590c75d2f25cbbea48b83 (diff)
downloadsamba-09c188e7353a74d05a674935c85e548bd09073ae.tar.gz
samba-09c188e7353a74d05a674935c85e548bd09073ae.tar.bz2
samba-09c188e7353a74d05a674935c85e548bd09073ae.zip
r24812: Fix headers for external users.
(This used to be commit ff6684adfd96b59381dd941e54070ab9f8984912)
Diffstat (limited to 'source4/lib/util')
-rw-r--r--source4/lib/util/data_blob.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/util/data_blob.h b/source4/lib/util/data_blob.h
index acecb88132..e39b2eaf45 100644
--- a/source4/lib/util/data_blob.h
+++ b/source4/lib/util/data_blob.h
@@ -19,6 +19,12 @@
#ifndef _SAMBA_DATABLOB_H_
#define _SAMBA_DATABLOB_H_
+#ifndef _PUBLIC_
+#define _PUBLIC_
+#endif
+
+#include <talloc.h>
+
/* used to hold an arbitrary blob of data */
typedef struct datablob {
uint8_t *data;
@@ -30,6 +36,10 @@ struct data_blob_list_item {
DATA_BLOB blob;
};
+/* by making struct ldb_val and DATA_BLOB the same, we can simplify
+ a fair bit of code */
+#define ldb_val datablob
+
#define data_blob(ptr, size) data_blob_named(ptr, size, "DATA_BLOB: "__location__)
#define data_blob_talloc(ctx, ptr, size) data_blob_talloc_named(ctx, ptr, size, "DATA_BLOB: "__location__)
#define data_blob_dup_talloc(ctx, blob) data_blob_talloc_named(ctx, (blob)->data, (blob)->length, "DATA_BLOB: "__location__)