summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-05 04:23:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-05 04:23:12 +0000
commit5a9c2f74ab0285859a6942bbc06d9e726cc69d19 (patch)
treef9fa12f9185be06a4dbd11e2fe8cbdad2bfcc04e /source3/include
parentaa045c08b26b9fad2b2f4f314b6ce2bfbefe4380 (diff)
downloadsamba-5a9c2f74ab0285859a6942bbc06d9e726cc69d19.tar.gz
samba-5a9c2f74ab0285859a6942bbc06d9e726cc69d19.tar.bz2
samba-5a9c2f74ab0285859a6942bbc06d9e726cc69d19.zip
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)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h3
1 files changed, 2 insertions, 1 deletions
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;
/*