25 lines
574 B
C
Raw Normal View History

2021-09-05 14:34:01 +08:00
#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 (*contantDeinitFun)(void *contant);
void link_deinit(Link *self);
void link_init(Link *self, void *args);
void link_addNode(Link *self, void *contant, contantDeinitFun _contantDinit);
void link_removeNode(Link *self, void *contant);
LinkNode *link_getNode(Link *self, int64_t id);
int32_t link_getSize(Link *self);
Link *New_link(void *args);
#endif