1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/rpc_server/samr
Andrew Tridgell b83ba93eae r1983: a completely new implementation of talloc
This version does the following:

  1) talloc_free(), talloc_realloc() and talloc_steal() lose their
     (redundent) first arguments

  2) you can use _any_ talloc pointer as a talloc context to allocate
     more memory. This allows you to create complex data structures
     where the top level structure is the logical parent of the next
     level down, and those are the parents of the level below
     that. Then destroy either the lot with a single talloc_free() or
     destroy any sub-part with a talloc_free() of that part

  3) you can name any pointer. Use talloc_named() which is just like
     talloc() but takes the printf style name argument as well as the
     parent context and the size.

The whole thing ends up being a very simple piece of code, although
some of the pointer walking gets hairy.

So far, I'm just using the new talloc() like the old one. The next
step is to actually take advantage of the new interface
properly. Expect some new commits soon that simplify some common
coding styles in samba4 by using the new talloc().
(This used to be commit e35bb094c5)
2007-10-10 12:58:14 -05:00
..
dcesrv_samr.c r1983: a completely new implementation of talloc 2007-10-10 12:58:14 -05:00
dcesrv_samr.h r884: convert samba4 to use [u]int32_t instead of [u]int32 2007-10-10 12:56:15 -05:00
samdb.c r1270: Start to break samdb into general bits so we can share code with other 2007-10-10 12:56:47 -05:00
samr_password.c r1294: A nice, large, commit... 2007-10-10 12:56:49 -05:00
samr_utils.c r889: convert samba4 to use [u]int16_t instead of [u]int16 2007-10-10 12:56:16 -05:00