1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00

r3571: rough guesses at what abartlet really wanted to do in his last commit

(which I suspect was missing some pieces)

this at least fixes the build so i can keep going on pvfs. Please review/fix Andrew.
This commit is contained in:
Andrew Tridgell
2004-11-06 03:44:16 +00:00
committed by Gerald (Jerry) Carter
parent cbb0c67d06
commit bffd18d09d
4 changed files with 16 additions and 0 deletions

View File

@@ -61,6 +61,18 @@ DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, size_t leng
return ret;
}
/*******************************************************************
construct a data blob which is a reference to another blob, in
the given mem context
*******************************************************************/
DATA_BLOB data_blob_talloc_reference(TALLOC_CTX *mem_ctx, DATA_BLOB *blob)
{
DATA_BLOB ret = *blob;
ret.data = talloc_reference(mem_ctx, ret.data);
return ret;
}
/*******************************************************************
construct a zero data blob, using supplied TALLOC_CTX.
use this sparingly as it initialises data - better to initialise