1
Fork 0
turbonss/src/vqueue.h

19 lines
442 B
C
Raw Normal View History

2004-12-23 15:16:30 +02:00
#ifndef __CMPH_VQUEUE_H__
#define __CMPH_VQUEUE_H__
#include "cmph_types.h"
2005-01-18 23:06:08 +02:00
typedef struct cmph__vqueue_t cmph_vqueue_t;
2004-12-23 15:16:30 +02:00
2005-01-18 23:06:08 +02:00
cmph_vqueue_t * cmph_vqueue_new(cmph_uint32 capacity);
2004-12-23 15:16:30 +02:00
2005-01-18 23:06:08 +02:00
cmph_uint8 cmph_vqueue_is_empty(cmph_vqueue_t * q);
2004-12-23 15:16:30 +02:00
2005-01-18 23:06:08 +02:00
void cmph_vqueue_insert(cmph_vqueue_t * q, cmph_uint32 val);
2004-12-23 15:16:30 +02:00
2005-01-18 23:06:08 +02:00
cmph_uint32 cmph_vqueue_remove(cmph_vqueue_t * q);
2004-12-23 15:16:30 +02:00
2005-01-18 23:06:08 +02:00
void cmph_vqueue_print(cmph_vqueue_t * q);
2004-12-23 15:16:30 +02:00
2005-01-18 23:06:08 +02:00
void cmph_vqueue_destroy(cmph_vqueue_t * q);
2004-12-23 15:16:30 +02:00
#endif