www.pudn.com > v0.9.rar > QU_queue1.h



/*******************************************************************************
*    Multi-Include-Prevent Section
*******************************************************************************/
#ifndef	__MD_DRAWE_H
#define	__MD_DRAWE_H

/*******************************************************************************
*    Debug switch Section
*******************************************************************************/


/*******************************************************************************
*    Include File Section
*******************************************************************************/
#include 

/*******************************************************************************
*    Macro Define Section
*******************************************************************************/
#define MAX_QUEUE_LENGTH (1000)

/*******************************************************************************
*    Struct  Define Section
*******************************************************************************/
typedef struct QU_list_st
{
	int data;
	struct QU_list_st *next;
	
}QU_Node_st,*QU_queuePtr_st;

struct QU_linkQueue_st
{
	QU_queuePtr_st front;
	QU_queuePtr_st rear;
	int length;	
	int frontSign;
	int rearSign;  
};

/*******************************************************************************
*    Prototype Declare Section
*******************************************************************************/
int QU_giReInitQueue(void);
int QU_giInitQueue(void);
int QU_niIsFullQueue(void);
int QU_niDelQueue(void);
int QU_niAddQueue(int aiElement);
int QU_niIsEmptyQueue(void);
int QU_giGetDataFromQueue(void);
int QU_giSetDataIntoQueue(int aiElement);


#endif