summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pxd
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 15:06:59 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 15:06:59 -0400
commit2b546944a1f0c5646936f2ab047345769e3a2471 (patch)
treed169d8d61e56c3f5bfc75ae0a505f8667ceedfe3 /libdimension-python/dimension.pxd
parent2edfa06a011307c9e3b8aa6b84c418cb70c0ec7c (diff)
downloaddimension-2b546944a1f0c5646936f2ab047345769e3a2471.tar.xz
python: Add simple global pool interface.
Diffstat (limited to 'libdimension-python/dimension.pxd')
-rw-r--r--libdimension-python/dimension.pxd10
1 files changed, 10 insertions, 0 deletions
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 #
##########