talloc docs

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Sep 15 21:51:09 GMT 2005

On Thu, Sep 15, 2005 at 05:39:04PM -0400, Chris Nicholls wrote:
> I've been trying to find documentation on talloc for samba 3 to 
> brainstorm the best way to work with it for libmsrpc.  All i've found is 
> talloc_guide.txt in the samba 4 code.  Is the talloc code the same in 
> samba 3 and samba 4 (ie will that guide be sufficient) ?  If not is 
> there and docs for samba 3? or should I just look over the code?

The code itself should be the same. We have some differences in the actual
macro calls, for example in Samba3 we call TALLOC_P(ctx, type) where in Samba4
you would call talloc(ctx, type) (I believe...). But the concepts are all the
same, the code has been backported a couple of months ago. So you have the
full hierarchical talloc with destructors, talloc_steal, talloc_reference and
so on.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20050915/e561418c/attachment.bin

More information about the samba-technical mailing list