2021-03-28 22:49:05 +02:00
|
|
|
#ifndef C_LIST_H
|
|
|
|
|
#define C_LIST_H
|
|
|
|
|
|
2021-03-30 02:45:32 +02:00
|
|
|
#include "SSystem/SComponent/c_node.h"
|
2021-04-08 16:01:29 +02:00
|
|
|
#include "dolphin/types.h"
|
2021-03-30 02:45:32 +02:00
|
|
|
|
|
|
|
|
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);
|
2021-03-28 22:49:05 +02:00
|
|
|
|
|
|
|
|
#endif /* C_LIST_H */
|