summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 18:51:59 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 18:51:59 -0400
commit4781d3a2a7ec463ee712c8de6362d8b6c872c31b (patch)
tree7bc2b7c8605f25e300a9be3d85230173d35a5fa9 /libdimension/dimension
parent57ee9bfb0dddba7ea06fd0e09c8aa2d80b8eb46d (diff)
downloaddimension-4781d3a2a7ec463ee712c8de6362d8b6c872c31b.tar.xz
interior: Use pool.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/interior.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/libdimension/dimension/interior.h b/libdimension/dimension/interior.h
index 69d3ebf..0ff697d 100644
--- a/libdimension/dimension/interior.h
+++ b/libdimension/dimension/interior.h
@@ -26,21 +26,14 @@
/** An interior. */
typedef struct dmnsn_interior {
double ior; /**< Refractive index. */
-
- DMNSN_REFCOUNT; /**< Reference count. */
} dmnsn_interior;
/**
* Create an interior object.
+ * @param[in] pool The memory pool to allocate from.
* @return The new interior.
*/
-dmnsn_interior *dmnsn_new_interior(void);
-
-/**
- * Delete an interior.
- * @param[in,out] interior The interior to delete.
- */
-void dmnsn_delete_interior(dmnsn_interior *interior);
+dmnsn_interior *dmnsn_new_interior(dmnsn_pool *pool);
/**
* Fill missing interior properties from a default interior.