feat():initial version
This commit is contained in:
29
insDavi2.0/include/lib/InsQueue.h
Normal file
29
insDavi2.0/include/lib/InsQueue.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user