From 2b546944a1f0c5646936f2ab047345769e3a2471 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 30 May 2014 15:06:59 -0400 Subject: python: Add simple global pool interface. --- libdimension-python/dimension.pxd | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libdimension-python/dimension.pxd') diff --git a/libdimension-python/dimension.pxd b/libdimension-python/dimension.pxd index fb02fbd..0d862ae 100644 --- a/libdimension-python/dimension.pxd +++ b/libdimension-python/dimension.pxd @@ -39,6 +39,16 @@ cdef extern from "../libdimension/dimension.h": double dmnsn_epsilon + ######### + # Pools # + ######### + + ctypedef struct dmnsn_pool + + dmnsn_pool *dmnsn_new_pool() + void *dmnsn_palloc(dmnsn_pool *pool, size_t size, dmnsn_callback_fn *callback) + void dmnsn_delete_pool(dmnsn_pool *pool) + ########## # Arrays # ########## -- cgit v1.2.3