Files
Cluster/insDavi2.0/include/lib/InsQueue.h
2026-04-17 18:22:45 +08:00

30 lines
479 B
C

#ifndef INSQUEUE_H_INCLUDED
#define INSQUEUE_H_INCLUDED
#include <BaseTypes.h>
typedef struct Struct_InsNode InsNode;
struct Struct_InsNode
{
void *data;
InsNode *next;
};
typedef struct Struct_InsQueue InsQueue;
struct Struct_InsQueue
{
InsNode *head;
InsNode *tail;
UInt32 length;
};
void pushQ(const InsNode *pItm, InsQueue *pQ);
void popQ(InsQueue *pQ);
InsNode *head(InsQueue *pQ);
InsNode *tail(InsQueue *pQ);
#endif // INSQUEUE_H_INCLUDED