+bool u_arraylist_get_index(const u_arraylist_t *list, const void *data, uint32_t *index)
+{
+ if (!list || !data)
+ {
+ return false;
+ }
+
+ for (uint32_t i = 0; i < list->length; i++)
+ {
+ if (data == list->data[i])
+ {
+ *index = i;
+ return true;
+ }
+ }
+
+ return false;
+}
+