diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-01-05 04:23:12 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-01-05 04:23:12 +0000 |
commit | 207ee8aac42cf4b35f07e496b15fdeabe50950bc (patch) | |
tree | 1edb212da2346bcc9ae26d7789bb4bca1aefba29 /source/include | |
parent | 323dd422bd4bdeeee72c9200821e28f86d3072c8 (diff) | |
download | samba-207ee8aac42cf4b35f07e496b15fdeabe50950bc.tar.gz samba-207ee8aac42cf4b35f07e496b15fdeabe50950bc.tar.xz samba-207ee8aac42cf4b35f07e496b15fdeabe50950bc.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
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/smb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/include/smb.h b/source/include/smb.h index bbd3fd9f248..bdc718f57b0 100644 --- a/source/include/smb.h +++ b/source/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; /* |