trick/trick_source/trick_utils/trick_adt/include/lqueue.h
Alex Lin 14a75508a3 Cleaning up once include variables and copyright cleanup.
Changed all header file once include variables to follow the same naming
convention and not start with any underscores.  Also deleted old
incorrect copyright notices.  Also removed $Id: tags from all files.

Fixes #14.  Fixes #22.
2015-03-23 16:03:14 -05:00

47 lines
735 B
C

/***************** queue functions ***************/
#ifndef LQUEUE_H
#define LQUEUE_H
#include "dllist.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _LQUEUE
{
DLLIST list; /* implementing queue using a linked-list */
}LQUEUE;
LQUEUE* LQ_Create(void); /* create and initialize a LQUEUE */
void LQ_Init(LQUEUE*); /* initialize a LQUEUE */
void LQ_EnQ(void* pData,LQUEUE* pQueue); /* insert data into queue */
void* LQ_DeQ(LQUEUE* pQueue); /* extract data from queue */
void* LQ_Peek(LQUEUE* pQueue); /* get data off queue without extracting */
int LQ_GetCount(LQUEUE* pQueue); /* returns number of items in the queue */
#ifdef __cplusplus
}
#endif
#endif