mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
27 lines
565 B
C
27 lines
565 B
C
|
#ifndef _linkNode__H
|
||
|
#define _linkNode__H
|
||
|
#include "dataMemory.h"
|
||
|
typedef struct Class_linkNode LinkNode;
|
||
|
struct Class_linkNode
|
||
|
{
|
||
|
/* attribute */
|
||
|
DMEM *mem;
|
||
|
LinkNode *priorNode;
|
||
|
LinkNode *nextNode;
|
||
|
long long id;
|
||
|
|
||
|
/* virtual operation */
|
||
|
void (*_contantDinit)(void *contant);
|
||
|
|
||
|
/* object */
|
||
|
void *contant;
|
||
|
};
|
||
|
|
||
|
void linkNode_deinit(LinkNode *self);
|
||
|
void linkNode_init(LinkNode *self, void *args);
|
||
|
long long linkNode_getId(LinkNode *self);
|
||
|
int linkNode_isId(LinkNode *self, long long id);
|
||
|
|
||
|
LinkNode *New_linkNode(void *args);
|
||
|
#endif
|