From 5a9c2f74ab0285859a6942bbc06d9e726cc69d19 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 5 Jan 2002 04:23:12 +0000 Subject: Add a talloc varient of the data_blob functions. Also change the structure so it has its own (optional) 'free' pointer - so we don't free() a talloc'ed version. also split out the data_blob_clear() functionaility. Andrew Bartlett (This used to be commit 207ee8aac42cf4b35f07e496b15fdeabe50950bc) --- source3/include/smb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/include/smb.h') diff --git a/source3/include/smb.h b/source3/include/smb.h index bbd3fd9f24..bdc718f57b 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -433,9 +433,10 @@ typedef struct files_struct } files_struct; /* used to hold an arbitrary blob of data */ -typedef struct { +typedef struct data_blob { uint8 *data; size_t length; + void (*free)(struct data_blob *data_blob); } DATA_BLOB; /* -- cgit