* entries.
* @param list the list to operate on.
* @param count the size to attempt to reserve room for.
+ * @return true if success, false otherwise.
*/
-void u_arraylist_reserve(u_arraylist_t *list, size_t count);
+bool u_arraylist_reserve(u_arraylist_t *list, size_t count);
/**
* Request that the storage in the list be reduced to fit its current length.
void *u_arraylist_get(const u_arraylist_t *list, uint32_t index);
/**
+ * Returns the index of the data from the array list.
+ * @param[in] list pointer of array list.
+ * @param[in] data pointer of data.
+ * @param[out]index index of array list.
+ * @return true if success, false otherwise.
+ */
+bool u_arraylist_get_index(const u_arraylist_t *list, const void *data, uint32_t *index);
+
+/**
* Add data in the array list.
* @param[in] list pointer of array list.
* @param[in] data pointer of data.