GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
list.c File Reference
#include <gpac/list.h>
+ Include dependency graph for list.c:

Data Structures

struct  GF_List
 

Macros

#define GF_LIST_ARRAY_GROW
 
#define GF_LIST_REALLOC(a)   (a = a ? (3*a/2) : 10)
 

Functions

GF_List * gf_list_new ()
 list constructor More...
 
void gf_list_del (GF_List *ptr)
 list destructor More...
 
static void realloc_chain (GF_List *ptr)
 
GF_Err gf_list_add (GF_List *ptr, void *item)
 add item More...
 
u32 gf_list_count (const GF_List *ptr)
 get count More...
 
void * gf_list_get (GF_List *ptr, u32 itemNumber)
 gets item More...
 
void * gf_list_last (GF_List *ptr)
 gets last item More...
 
GF_Err gf_list_rem (GF_List *ptr, u32 itemNumber)
 removes item More...
 
GF_Err gf_list_rem_last (GF_List *ptr)
 removes last item More...
 
GF_Err gf_list_insert (GF_List *ptr, void *item, u32 position)
 inserts item More...
 
void gf_list_reset (GF_List *ptr)
 resets list More...
 
s32 gf_list_find (GF_List *ptr, void *item)
 finds item More...
 
s32 gf_list_del_item (GF_List *ptr, void *item)
 deletes item More...
 
void * gf_list_enum (GF_List *ptr, u32 *pos)
 list enumerator More...
 
void * gf_list_rev_enum (GF_List *ptr, u32 *pos)
 list enumerator in reversed order More...
 
GF_Err gf_list_swap (GF_List *l1, GF_List *l2)
 list swap More...
 
GF_Err gf_list_transfer (GF_List *l1, GF_List *l2)
 list transfer More...
 
GF_List * gf_list_clone (GF_List *ptr)
 clone list More...
 
void gf_list_reverse (GF_List *ptr)
 reverses the order of the elements in the list container. More...
 
void * gf_list_pop_front (GF_List *ptr)
 Pop the first element in the list. More...
 
void * gf_list_pop_back (GF_List *ptr)
 Pop the last element in the list. More...
 

Data Structure Documentation

struct _tag_array
+ Collaboration diagram for GF_List:
Data Fields
void ** slots
u32 entryCount
u32 allocSize

Macro Definition Documentation

#define GF_LIST_ARRAY_GROW
#define GF_LIST_REALLOC (   a)    (a = a ? (3*a/2) : 10)

Function Documentation

static void realloc_chain ( GF_List *  ptr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function: