summaryrefslogtreecommitdiff
path: root/include/SSystem/SComponent/c_list.h
blob: 4b7d5d178af254fe77f2183ff617fe098ffd5fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef C_LIST_H
#define C_LIST_H


typedef struct node_class node_class;

typedef struct node_list_class {
    node_class* mpHead;
    node_class* mpTail;
    int mSize;
} node_list_class;

void cLs_Init(node_list_class* pList);
int cLs_SingleCut(node_class* pNode);
int cLs_Addition(node_list_class* pList, node_class* pNode);
int cLs_Insert(node_list_class* pList, int idx, node_class* pNode);
node_class* cLs_GetFirst(node_list_class* pList);
void cLs_Create(node_list_class* pList);

#endif /* C_LIST_H */