16#ifndef _NETSIM_OSPF_LIST_H_
17#define _NETSIM_OSPF_LIST_H_
23 ptrOSPFLIST ospf_list_init(
void(*freeMem)(
void*),
24 void*(*copyMem)(
void*));
25 UINT ospf_list_get_size(ptrOSPFLIST list);
28#define ospf_list_add_mem(list,mem) ospf_list_add_mem_dbg(list,mem,__FUNCTION__,__LINE__)
30#define ospf_list_add_mem(list,mem) ospf_list_add_mem_dbg(list,mem,NULL,0)
32 void ospf_list_add_mem_dbg(ptrOSPFLIST list,
36 bool ospf_list_is_empty(ptrOSPFLIST list);
37 void* ospf_list_get_mem(ptrOSPFLIST list);
38 void ospf_list_delete_all(ptrOSPFLIST list);
39 void* ospf_list_iterate_mem(ptrOSPFLIST list,
void* iterator);
40 void* ospf_list_get_headptr(ptrOSPFLIST list);
41 void ospf_list_delete_mem(ptrOSPFLIST list,
void* mem,
void* ite);
42 void ospf_list_destroy(ptrOSPFLIST list);
43 void ospf_list_replace_mem(ptrOSPFLIST list,
void* oldMem,
void* newMem);
44 void ospf_list_remove_mem(ptrOSPFLIST list,
void* mem,
void* ite);
45 ptrOSPFLIST ospf_list_copyAll(ptrOSPFLIST list);
46 void* ospf_list_newIterator();
47 void ospf_list_deleteIterator(
void* ite);
53 void(*freemem)(
void*);
55 ptrARRAYLIST ospf_arrayList_init(
void(*freeMem)(
void*));
56 void ospf_add_ptr_to_arrayList(ptrARRAYLIST list,
void* mem);
57 void ospf_arraylist_free(ptrARRAYLIST list);