30 lines
479 B
C
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
|