mirror of
https://github.com/nasa/trick.git
synced 2025-01-23 04:48:00 +00:00
14a75508a3
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.
47 lines
735 B
C
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
|
|
|
|
|