diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-01-09 02:37:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:33 -0500 |
commit | 1bdbd21eb23d5591f005da13f1868343a4395dbe (patch) | |
tree | abcee1ffed0e1dd4c18faa1884bae0047fd21cf8 /source4 | |
parent | c13ada4e35a3ad68950a19a981499acebb521128 (diff) | |
download | samba-1bdbd21eb23d5591f005da13f1868343a4395dbe.tar.gz samba-1bdbd21eb23d5591f005da13f1868343a4395dbe.tar.bz2 samba-1bdbd21eb23d5591f005da13f1868343a4395dbe.zip |
r4609: add a usefull data_blob_dup_talloc() macro
metze
(This used to be commit 11e006df1689d4b4b202bca640106fd789495284)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/talloc/talloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/talloc/talloc.h b/source4/lib/talloc/talloc.h index 8169782441..5ac5888876 100644 --- a/source4/lib/talloc/talloc.h +++ b/source4/lib/talloc/talloc.h @@ -62,6 +62,7 @@ typedef void TALLOC_CTX; #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 TALLOC_DEPRECATED |