|
mediastreamer2 5.3.105
|
Functions | |
| bctbx_list_t * | ms_list_append (bctbx_list_t *list, void *data) |
| bctbx_list_t * | ms_list_append_link (bctbx_list_t *list, bctbx_list_t *new_elem) |
| bctbx_list_t * | ms_list_prepend (bctbx_list_t *list, void *data) |
| bctbx_list_t * | ms_list_free (bctbx_list_t *list) |
| bctbx_list_t * | ms_list_free_with_data (bctbx_list_t *list, void(*freefunc)(void *)) |
| bctbx_list_t * | ms_list_concat (bctbx_list_t *first, bctbx_list_t *second) |
| bctbx_list_t * | ms_list_remove (bctbx_list_t *list, void *data) |
| bctbx_list_t * | ms_list_remove_custom (bctbx_list_t *list, MSCompareFunc compare_func, const void *user_data) |
| int | ms_list_size (const bctbx_list_t *list) |
| void | ms_list_for_each (const bctbx_list_t *list, MSIterateFunc iterate_func) |
| void | ms_list_for_each2 (const bctbx_list_t *list, MSIterate2Func iterate_func, void *user_data) |
| void | ms_list_for_each3 (const bctbx_list_t *list, MSIterate3Func iterate_func, void *user_data, void *factory) |
| bctbx_list_t * | ms_list_remove_link (bctbx_list_t *list, bctbx_list_t *elem) |
| bctbx_list_t * | ms_list_find (bctbx_list_t *list, void *data) |
| bctbx_list_t * | ms_list_find_custom (bctbx_list_t *list, MSCompareFunc compare_func, const void *user_data) |
| void * | ms_list_nth_data (const bctbx_list_t *list, int index) |
| int | ms_list_position (const bctbx_list_t *list, bctbx_list_t *elem) |
| int | ms_list_index (const bctbx_list_t *list, void *data) |
| bctbx_list_t * | ms_list_insert_sorted (bctbx_list_t *list, void *data, MSCompareFunc compare_func) |
| bctbx_list_t * | ms_list_insert (bctbx_list_t *list, bctbx_list_t *before, void *data) |
| bctbx_list_t * | ms_list_copy (const bctbx_list_t *list) |
| bctbx_list_t * | ms_list_copy_with_data (const bctbx_list_t *list, void *(*copyfunc)(void *)) |
| bctbx_list_t * | ms_list_next (const bctbx_list_t *list) |
| bctbx_list_t * ms_list_append | ( | bctbx_list_t * | list, |
| void * | data | ||
| ) |
Inserts a new element containing data to the end of a given list
| list | list where data should be added. If NULL, a new list will be created. |
| data | data to insert into the list |
| bctbx_list_t * ms_list_append_link | ( | bctbx_list_t * | list, |
| bctbx_list_t * | new_elem | ||
| ) |
Inserts given element to the end of a given list
| list | list where data should be added. If NULL, a new list will be created. |
| new_elem | element to append |
| bctbx_list_t * ms_list_concat | ( | bctbx_list_t * | first, |
| bctbx_list_t * | second | ||
| ) |
Concatenates second list to the end of first list
| first | First list |
| second | Second list to append at the end of first list. |
| bctbx_list_t * ms_list_copy | ( | const bctbx_list_t * | list | ) |
Copies a list in another one, duplicating elements but not data
| list | list to copy |
| bctbx_list_t * ms_list_copy_with_data | ( | const bctbx_list_t * | list, |
| void *(*)(void *) | copyfunc | ||
| ) |
Copies a list in another one, duplicating elements according to the given function
| list | list to copy |
| copyfunc | function to invoke on each element which will return the new list data value |
| bctbx_list_t * ms_list_find | ( | bctbx_list_t * | list, |
| void * | data | ||
| ) |
Finds first element containing data in the given list.
| list | List in which element must be found |
| data | data to find |
| bctbx_list_t * ms_list_find_custom | ( | bctbx_list_t * | list, |
| MSCompareFunc | compare_func, | ||
| const void * | user_data | ||
| ) |
Finds first element according to the given predicate function
| list | List in which element must be found |
| compare_func | Function to invoke on each element. If it returns TRUE, the given element will be returned. |
| user_data | User data to pass to compare_func function |
| void ms_list_for_each | ( | const bctbx_list_t * | list, |
| MSIterateFunc | iterate_func | ||
| ) |
Invoke function on each element of the list
| list | List object |
| iterate_func | Function to invoke on each element. |
| void ms_list_for_each2 | ( | const bctbx_list_t * | list, |
| MSIterate2Func | iterate_func, | ||
| void * | user_data | ||
| ) |
Invoke function on each element of the list
| list | List object |
| iterate_func | Function to invoke on each element. |
| user_data | User data to pass to iterate_func function. |
| bctbx_list_t * ms_list_free | ( | bctbx_list_t * | list | ) |
Frees all elements of a given list Note that data contained in each element will not be freed. If you need to clean them, consider using @ms_list_free_with_data
| list | object to free. |
| bctbx_list_t * ms_list_free_with_data | ( | bctbx_list_t * | list, |
| void(*)(void *) | freefunc | ||
| ) |
Frees all elements of a given list after having called freefunc on each element
| list | object to free. |
| freefunc | function to invoke on each element data before destroying the element |
| int ms_list_index | ( | const bctbx_list_t * | list, |
| void * | data | ||
| ) |
Returns the index of the first element containing data
| list | List object |
| data | Data to search for. |
| bctbx_list_t * ms_list_insert | ( | bctbx_list_t * | list, |
| bctbx_list_t * | before, | ||
| void * | data | ||
| ) |
Inserts a new element containing data before the given element
| list | list where data should be added. If NULL, a new list will be created. |
| before | element parent to the one we will insert. |
| data | data to insert into the list |
| bctbx_list_t * ms_list_insert_sorted | ( | bctbx_list_t * | list, |
| void * | data, | ||
| MSCompareFunc | compare_func | ||
| ) |
Inserts a new element containing data at the place given by compare_func
| list | list where data should be added. If NULL, a new list will be created. |
| data | data to insert into the list |
| compare_func | function determining where should the new element be placed |
| bctbx_list_t * ms_list_next | ( | const bctbx_list_t * | list | ) |
| void * ms_list_nth_data | ( | const bctbx_list_t * | list, |
| int | index | ||
| ) |
Returns the nth element data of the list
| list | List object |
| index | data index which must be returned. |
| int ms_list_position | ( | const bctbx_list_t * | list, |
| bctbx_list_t * | elem | ||
| ) |
Returns the index of the given element
| list | List object |
| elem | Element to search for. |
| bctbx_list_t * ms_list_prepend | ( | bctbx_list_t * | list, |
| void * | data | ||
| ) |
Inserts a new element containing data to the start of a given list
| list | list where data should be added. If NULL, a new list will be created. |
| data | data to insert into the list |
| bctbx_list_t * ms_list_remove | ( | bctbx_list_t * | list, |
| void * | data | ||
| ) |
Finds and remove the first element containing the given data. Nothing is done if element is not found.
| list | List in which data must be removed |
| data | Data to remove |
| bctbx_list_t * ms_list_remove_custom | ( | bctbx_list_t * | list, |
| MSCompareFunc | compare_func, | ||
| const void * | user_data | ||
| ) |
Finds and remove any elements according to the given predicate function
| list | List in which data must be removed |
| compare_func | Function to invoke on each element. If it returns TRUE, the given element will be deleted. |
| user_data | User data to pass to compare_func function |
| bctbx_list_t * ms_list_remove_link | ( | bctbx_list_t * | list, |
| bctbx_list_t * | elem | ||
| ) |
Finds and remove given element in list.
| list | List in which element must be removed |
| element | element to remove |
| int ms_list_size | ( | const bctbx_list_t * | list | ) |
Returns size of a given list
| list | List to measure |