27 lines
565 B
C
Raw Normal View History

2021-10-01 00:21:50 +08:00
#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