Signed-off-by: Cedric Bail <cedric.bail@free.fr>
array->members = NULL;
}
+EAPI Eina_Bool
+eina_inarray_resize(Eina_Inarray *array, unsigned int new_size)
+{
+ Eina_Bool r;
+ EINA_MAGIC_CHECK_INARRAY(array, EINA_FALSE);
+
+ r = _eina_inarray_resize(array, new_size);
+ if(!r) return EINA_FALSE;
+
+ array->len = new_size;
+ return EINA_TRUE;
+}
+
EAPI int
eina_inarray_push(Eina_Inarray *array, const void *data)
{
Eina_Each_Cb match,
const void *user_data) EINA_ARG_NONNULL(1, 2);
+/**
+ * @brief Resize array to new size
+ * @param array array object
+ * @param new_size
+ * @return #EINA_TRUE if it successfully resized the array
+ *
+ * @since 1.10
+ */
+EAPI Eina_Bool eina_inarray_resize(Eina_Inarray *array, unsigned int new_size);
+
/**
* @brief number of members in array.
* @param array array object