girepository/cmph/vqueue.h
raw| 1 | #ifndef __CMPH_VQUEUE_H__ |
| 2 | #define __CMPH_VQUEUE_H__ |
| 3 | |
| 4 | #include "cmph_types.h" |
| 5 | typedef struct __vqueue_t vqueue_t; |
| 6 | |
| 7 | vqueue_t * vqueue_new(cmph_uint32 capacity); |
| 8 | |
| 9 | cmph_uint8 vqueue_is_empty(vqueue_t * q); |
| 10 | |
| 11 | void vqueue_insert(vqueue_t * q, cmph_uint32 val); |
| 12 | |
| 13 | cmph_uint32 vqueue_remove(vqueue_t * q); |
| 14 | |
| 15 | void vqueue_print(vqueue_t * q); |
| 16 | |
| 17 | void vqueue_destroy(vqueue_t * q); |
| 18 | #endif |