LibGame  v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
lg_linked_list.h
1 /*
2  * LibGame - Copyright (C) Emmanuel Thomas-Maurin 2011-2024
3  * All rights reserved
4  */
5 
6 #ifndef LG_LINKED_LIST_H
7 #define LG_LINKED_LIST_H
8 
9 typedef struct LinkedList {
10  void *data;
11  size_t size;
12  struct LinkedList *prev;
13  struct LinkedList *next;
15 
16 LG_LinkedList *lg_list_new(void *, size_t);
17 LG_LinkedList *lg_list_add(LG_LinkedList *, void *, size_t);
28 
29 #endif /* LG_LINKED_LIST_H */
lg_list_count
int lg_list_count(LG_LinkedList *some_node)
Definition: lg_linked_list.c:185
lg_list_index
int lg_list_index(LG_LinkedList *some_node)
Definition: lg_linked_list.c:164
lg_list_nth
LG_LinkedList * lg_list_nth(LG_LinkedList *some_node, int n)
Definition: lg_linked_list.c:139
LG_LinkedList
Definition: lg_linked_list.h:9
lg_list_last
LG_LinkedList * lg_list_last(LG_LinkedList *node)
Definition: lg_linked_list.c:112
lg_list_first
LG_LinkedList * lg_list_first(LG_LinkedList *node)
Definition: lg_linked_list.c:101
lg_list_remove
LG_LinkedList * lg_list_remove(LG_LinkedList *node)
Definition: lg_linked_list.c:55
lg_list_prev
LG_LinkedList * lg_list_prev(LG_LinkedList *node)
Definition: lg_linked_list.c:123
lg_list_next
LG_LinkedList * lg_list_next(LG_LinkedList *node)
Definition: lg_linked_list.c:131
lg_list_free
void lg_list_free(LG_LinkedList *node)
Definition: lg_linked_list.c:80
lg_list_free_all
void lg_list_free_all(LG_LinkedList *some_node)
Definition: lg_linked_list.c:89
lg_list_new
LG_LinkedList * lg_list_new(void *data, size_t size)
Definition: lg_linked_list.c:22
lg_list_add
LG_LinkedList * lg_list_add(LG_LinkedList *some_node, void *data, size_t size)
Definition: lg_linked_list.c:39