summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 19:23:34 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 19:23:34 -0400
commit72daebf48e4a27de9f6633b2693ab96fb4ef1e44 (patch)
tree41d98c736ea9fcb6cdc47c621130b08b48a145de /libdimension/dimension
parent8807ab192b36acbc94e11790e9261c799ce77892 (diff)
downloaddimension-72daebf48e4a27de9f6633b2693ab96fb4ef1e44.tar.xz
map: Use pool.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/map.h11
-rw-r--r--libdimension/dimension/pigments.h5
2 files changed, 6 insertions, 10 deletions
diff --git a/libdimension/dimension/map.h b/libdimension/dimension/map.h
index 7e12e7e..77b1fe9 100644
--- a/libdimension/dimension/map.h
+++ b/libdimension/dimension/map.h
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Library. *
* *
@@ -32,16 +32,11 @@ typedef struct dmnsn_map {
/**
* Create an empty map.
+ * @param[in] pool The memory pool to allocate from.
* @param[in] size The size of the objects to store in the map.
* @return A map with no entries.
*/
-dmnsn_map *dmnsn_new_map(size_t size);
-
-/**
- * Delete a map.
- * @param[in,out] map The map to delete.
- */
-void dmnsn_delete_map(dmnsn_map *map);
+dmnsn_map *dmnsn_new_map(dmnsn_pool *pool, size_t size);
/**
* Add an entry (a scalar-object pair) to a map.
diff --git a/libdimension/dimension/pigments.h b/libdimension/dimension/pigments.h
index 383e38b..e2ea274 100644
--- a/libdimension/dimension/pigments.h
+++ b/libdimension/dimension/pigments.h
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Library. *
* *
@@ -48,9 +48,10 @@ typedef enum dmnsn_pigment_map_flags {
/**
* Construct a pigment map.
+ * @param[in] pool The memory pool to allocate from.
* @return An empty pigment map.
*/
-dmnsn_map *dmnsn_new_pigment_map(void);
+dmnsn_map *dmnsn_new_pigment_map(dmnsn_pool *pool);
/**
* A pigment-mapped pigment.