Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Chained_List.c File Reference
#include "Chained_List.h"
Include dependency graph for Chained_List.c:

Go to the source code of this file.

Functions

struct chained_listchained_list_init (uint32_t size_of_trunk, size_t size_of_payload)
 Ininitalizes a buffered chained list. More...
 
struct chained_listchained_list_alloc_next_chunk (struct chained_list *current_chunk)
 Alocate a new chunk pointing to current_chunk (Recopy MODE ) More...
 
struct chained_listchained_list_alloc_chunk (uint32_t size_of_trunk, size_t size_of_payload)
 Alocate a new chunk ( first chunk ) More...
 
void * chained_list_push (struct chained_list **list, void *p_payload)
 Push an element in the chained list. More...
 
void cond_chained_list_merge (struct chained_list **dest, struct chained_list *source, int(*condition)(void *))
 Push all element of source satisfying condition in dest. More...
 
void chained_list_walkthrough (struct chained_list *list, void(*action)(void *))
 Call a function uppon each element of the chained list. More...
 
void chained_list_walkthrough_arg (struct chained_list *list, void(*action)(void *, void *), void *arg)
 Call a function uppon each element of the chained list. More...
 
int chained_list_count (struct chained_list *list)
 Count elements in the chained list. More...
 
void chained_list_release (struct chained_list **list)
 Release a buffered chained list. More...
 
void * chained_list_get_elem (struct chained_list *list, int(*test_func)(void *, void *), void *value)
 Get a pointer to the first element which matches a value. More...