mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
25 lines
574 B
C
25 lines
574 B
C
#ifndef _link2__H
|
|
#define _link2__H
|
|
#include "dataLinkNode.h"
|
|
#include "dataMemory.h"
|
|
|
|
typedef struct Class_link Link;
|
|
struct Class_link
|
|
{
|
|
LinkNode *firstNode;
|
|
int64_t TopId;
|
|
uint16_t memSize;
|
|
};
|
|
|
|
typedef void (*contentDeinitFun)(void *content);
|
|
|
|
void link_deinit(Link *self);
|
|
void link_init(Link *self, void *args);
|
|
void link_addNode(Link *self, void *content, contentDeinitFun _contentDinit);
|
|
void link_removeNode(Link *self, void *content);
|
|
LinkNode *link_getNode(Link *self, int64_t id);
|
|
int32_t link_getSize(Link *self);
|
|
|
|
Link *New_link(void *args);
|
|
#endif
|