talloc: Add a separate pool size
authorVolker Lendecke <vl@samba.org>
Fri, 6 Sep 2013 21:20:20 +0000 (14:20 -0700)
committerVolker Lendecke <vl@samba.org>
Sun, 8 Sep 2013 09:34:06 +0000 (11:34 +0200)
commita3d9099d9a96b36df21ee0733adc5210438fe9dc
tree834f1409ef6f833f8d7303182b7892e25602b22e
parentb87c8fd435d1863d6efcec03830ecd85ddfcd7fb
talloc: Add a separate pool size

This is necessary to allow talloc pools to be objects on their own. It
is an incompatible change in the sense that talloc_get_size(pool) now
returns 0 instead of the pool size. When the talloc_pooled_object()
call is added, this will start to make sense again.

Maybe we should add a talloc_pool_size call? Or is that overkill?

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/talloc/talloc.c