mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
28 lines
591 B
C
28 lines
591 B
C
#ifndef _link2__H
|
|
#define _link2__H
|
|
#include "dataLinkNode.h"
|
|
#include "dataMemory.h"
|
|
|
|
typedef struct Class_link Link;
|
|
struct Class_link
|
|
{
|
|
/* attribute */
|
|
DMEM *mem;
|
|
LinkNode *firstNode;
|
|
int64_t TopId;
|
|
|
|
/* virtual operation */
|
|
|
|
/* object */
|
|
};
|
|
|
|
void link_deinit(Link *self);
|
|
void link_init(Link *self, void *args);
|
|
void link_addNode(Link *self, void *contant, void (*_contantDinit)(void *contant));
|
|
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
|