11 #include "cdi/lists.h" 12 #include "pedigree/kernel/compiler.h" 13 #include "pedigree/kernel/processor/types.h" 23 void list_destroy(
list_t* list);
25 void* list_pop(
list_t* list);
26 int list_is_empty(
list_t* list);
27 void* list_get_element_at(
list_t* list,
int index);
28 list_t* list_insert(
list_t* list,
int index,
void* value);
29 void* list_remove(
list_t* list,
int index);
30 unsigned long list_size(
list_t* list);
44 return reinterpret_cast<cdi_list_t
>(list_create());
63 return reinterpret_cast<cdi_list_t
>(list_push(l, value));
82 return list_is_empty(l);
91 return list_get_element_at(l, index);
99 EXPORTED_PUBLIC cdi_list_t cdi_list_insert(cdi_list_t list,
size_t index,
void* value)
102 return reinterpret_cast<cdi_list_t
>(list_insert(l, index, value));
111 return list_remove(l, index);