X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Ftalloc%2Ftalloc.h;h=b9afc22669f5517df1a01b9dc6106fc792925d3d;hp=15a1eb65d0beee4ee09af74cae5e7dc2998b5e6c;hb=2163af58b5e631a2a8d2acd79b541ed884ab7b57;hpb=32e6a41f33e5576716b351bd473a27939fe94fa1;ds=sidebyside diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h index 15a1eb6..b9afc22 100644 --- a/lib/talloc/talloc.h +++ b/lib/talloc/talloc.h @@ -25,6 +25,7 @@ #include #include #include +#include /* this is only needed for compatibility with the old talloc */ typedef void TALLOC_CTX; @@ -132,6 +133,7 @@ void *_talloc_realloc_array(const void *ctx, void *ptr, size_t el_size, unsigned void *talloc_realloc_fn(const void *context, void *ptr, size_t size); void *talloc_autofree_context(void); size_t talloc_get_size(const void *ctx); +int talloc_reference_count(const void *ptr); #endif