summaryrefslogtreecommitdiff
path: root/source4/lib/util
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-10 16:47:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:10:01 -0500
commitec2b3baf09ebff97bc958e73591e128f14c7a378 (patch)
tree98ffd42a9a4234ff45a657e9dee0adf28f0e5714 /source4/lib/util
parent5468516f9af10cb3c67bc93c610c22b5383e20db (diff)
downloadsamba-ec2b3baf09ebff97bc958e73591e128f14c7a378.tar.gz
samba-ec2b3baf09ebff97bc958e73591e128f14c7a378.tar.bz2
samba-ec2b3baf09ebff97bc958e73591e128f14c7a378.zip
r16922: move some macros out of talloc.h as the don't belong to talloc
metze (This used to be commit 4c68e315e2288eef97527911daf18622a994ac31)
Diffstat (limited to 'source4/lib/util')
-rw-r--r--source4/lib/util/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/util/util.h b/source4/lib/util/util.h
index f1a6fc4c30..2517966d90 100644
--- a/source4/lib/util/util.h
+++ b/source4/lib/util/util.h
@@ -100,6 +100,10 @@ extern const char *panic_action;
*/
#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count)
+#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__)
+
#if defined(VALGRIND)
#define strlen(x) valgrind_strlen(x)
#endif