[RFC] Making talloc_reference() safer.

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Oct 24 01:00:19 MDT 2011

On Mon, Oct 24, 2011 at 05:50:38PM +1100, ronnie sahlberg wrote:
> Even better I think would be if you had a new set of creator functions
>  where you could set the "no longer hierarical, now its multi-parent
> referenced" already from the initial creation. That would be even
> better imho  to force the choice of api at object creation time and
> not create it as ahierarical object and then later "upgrade" it to a
> different model.
> I.e. offer something like this
> talloc_new_ref(...)
> instead of using the pattern
> talloc_new(...)
> ...
> talloc_make_reference_ptr(...)

Looks good to me!


SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

More information about the samba-technical mailing list