43 #define ARRAY_LIST_DEFAULT_SIZE 32 // Default ArrayList size
129 int(*compar)(
const void *,
const void *));
size_t size
Size of array.
Definition: array_list.h:54
void * cclArrayListBSearch(ccl_array_list_t *tal, const void **key, int(*compar)(const void *, const void *))
Binary search for array-list.
Definition: array_list.c:142
int cclArrayListDelIdx(ccl_array_list_t *tal, size_t i, size_t count)
Delete range of elements of Array-List since index.
Definition: array_list.c:100
int cclArrayListAdd(ccl_array_list_t *tal, void *data)
Add element to Array-List.
Definition: array_list.c:124
size_t length
Count of elements in array.
Definition: array_list.h:53
void ** array
Core array.
Definition: array_list.h:52
void cclArrayListSort(ccl_array_list_t *tal, int(*compar)(const void *, const void *))
Run Qsort for array-list.
Definition: array_list.c:136
struct ccl_array_list ccl_array_list_t
Array-List structure.
int cclArrayListFree(ccl_array_list_t *tal)
Free memory allocated for Array-List.
Definition: array_list.c:27
void( array_list_free_fn)(void *data)
Definition: array_list.h:45
size_t cclArrayListLength(ccl_array_list_t *tal)
Get count of elements in Array-List.
Definition: array_list.c:130
Array-List structure.
Definition: array_list.h:50
array_list_free_fn * free_fn
Pointer to free-callback function.
Definition: array_list.h:55
ccl_array_list_t * cclArrayListNew(array_list_free_fn *free_fn)
Create new Array-List.
Definition: array_list.c:13
void * cclArrayListGetIdx(ccl_array_list_t *tal, size_t i)
Get element of Array-List by index.
Definition: array_list.c:45