2004-12-23 15:16:30 +02:00
|
|
|
#ifndef __CMPH_VQUEUE_H__
|
|
|
|
#define __CMPH_VQUEUE_H__
|
|
|
|
|
|
|
|
#include "cmph_types.h"
|
2005-01-21 22:42:33 +02:00
|
|
|
typedef struct __vqueue_t vqueue_t;
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
vqueue_t * vqueue_new(cmph_uint32 capacity);
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
cmph_uint8 vqueue_is_empty(vqueue_t * q);
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
void vqueue_insert(vqueue_t * q, cmph_uint32 val);
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
cmph_uint32 vqueue_remove(vqueue_t * q);
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
void vqueue_print(vqueue_t * q);
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
void vqueue_destroy(vqueue_t * q);
|
2004-12-23 15:16:30 +02:00
|
|
|
#endif
|