dovecot-1.2: Added array_get_pool().

dovecot at dovecot.org dovecot at dovecot.org
Sat Jan 10 22:37:35 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/9f98a74e0757
changeset: 8610:9f98a74e0757
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jan 10 15:37:24 2009 -0500
description:
Added array_get_pool().
Patch by Stephan Bosch.

diffstat:

1 file changed, 8 insertions(+)
src/lib/array.h |    8 ++++++++

diffs (18 lines):

diff -r 26516ae3b687 -r 9f98a74e0757 src/lib/array.h
--- a/src/lib/array.h	Fri Jan 09 14:03:44 2009 -0500
+++ b/src/lib/array.h	Sat Jan 10 15:37:24 2009 -0500
@@ -91,6 +91,14 @@ array_is_created_i(const struct array *a
 #define array_is_created(array) \
 	array_is_created_i(&(array)->arr)
 
+static inline pool_t ATTR_PURE
+array_get_pool_i(struct array *array)
+{
+	return buffer_get_pool(array->buffer);
+}
+#define array_get_pool(array) \
+	array_get_pool_i(&(array)->arr)
+
 static inline void
 array_clear_i(struct array *array)
 {


More information about the dovecot-cvs mailing list