talloc: Add a separate pool size
commit1a705185b445e0c4bdb5535eda2711c228ba0bc2
authorVolker Lendecke <vl@samba.org>
Fri, 6 Sep 2013 21:20:20 +0000 (6 14:20 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sun, 15 Mar 2015 21:13:09 +0000 (15 22:13 +0100)
treefe369d72268306acd4308ca1119f32bb75b32395
parent849733792bc9f70bcaeb366e1cd3c14ceea8df18
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>
(cherry picked from commit a3d9099d9a96b36df21ee0733adc5210438fe9dc)
lib/talloc/talloc.c