20 lines
449 B
C
Raw Normal View History

2021-09-08 21:25:52 +08:00
#ifndef _link2__H
#define _link2__H
#include "dataLinkNode.h"
#include "dataMemory.h"
typedef struct Class_link Link;
2021-09-10 17:49:56 +08:00
struct Class_link {
LinkNode* firstNode;
2021-09-08 21:25:52 +08:00
};
2021-09-10 17:49:56 +08:00
void link_deinit(Link* self);
void link_init(Link* self, void* args);
void link_addNode(Link* self, void* content);
void link_removeNode(Link* self, void* content);
LinkNode* link_getNode(Link* self, int64_t id);
int32_t link_getSize(Link* self);
2021-09-08 21:25:52 +08:00
2021-09-10 17:49:56 +08:00
Link* New_link(void* args);
2021-09-08 21:25:52 +08:00
#endif