summaryrefslogtreecommitdiff
path: root/source4/include/talloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include/talloc.h')
-rw-r--r--source4/include/talloc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/include/talloc.h b/source4/include/talloc.h
index 9f7281f427..e329bdb308 100644
--- a/source4/include/talloc.h
+++ b/source4/include/talloc.h
@@ -38,6 +38,7 @@ typedef void TALLOC_CTX;
#define talloc_p(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)
#define talloc_array_p(ctx, type, count) (type *)talloc_array(ctx, sizeof(type), count, __location__)
#define talloc_realloc_p(p, type, count) (type *)talloc_realloc_array(p, sizeof(type), count, __location__)
+#define talloc_memdup(t, p, size) _talloc_memdup(t, p, size, __location__)
#define talloc_destroy(ctx) talloc_free(ctx)
@@ -45,5 +46,7 @@ typedef void TALLOC_CTX;
#define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count)
#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count)
+#define data_blob(ptr, size) data_blob_named(ptr, size, __location__)
+
#endif