diff options
Diffstat (limited to 'source4/lib/util')
-rw-r--r-- | source4/lib/util/util.h | 4 |
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 |