summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_inarray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_inarray.c')
-rw-r--r--src/lib/eina/eina_inarray.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/eina/eina_inarray.c b/src/lib/eina/eina_inarray.c
index e674a20f3c..c1e07bed6d 100644
--- a/src/lib/eina/eina_inarray.c
+++ b/src/lib/eina/eina_inarray.c
@@ -382,6 +382,19 @@ eina_inarray_flush(Eina_Inarray *array)
382 array->members = NULL; 382 array->members = NULL;
383} 383}
384 384
385EAPI Eina_Bool
386eina_inarray_resize(Eina_Inarray *array, unsigned int new_size)
387{
388 Eina_Bool r;
389 EINA_MAGIC_CHECK_INARRAY(array, EINA_FALSE);
390
391 r = _eina_inarray_resize(array, new_size);
392 if(!r) return EINA_FALSE;
393
394 array->len = new_size;
395 return EINA_TRUE;
396}
397
385EAPI int 398EAPI int
386eina_inarray_push(Eina_Inarray *array, const void *data) 399eina_inarray_push(Eina_Inarray *array, const void *data)
387{ 400{