KasmVNC/common/network/webudp/WuQueue.h

17 lines
367 B
C
Raw Normal View History

2022-07-26 12:38:14 +02:00
#pragma once
#include <stdint.h>
struct WuQueue {
int32_t itemSize;
int32_t start;
int32_t length;
int32_t capacity;
uint8_t* items;
};
WuQueue* WuQueueCreate(int32_t itemSize, int32_t capacity);
void WuQueueInit(WuQueue* q, int32_t itemSize, int32_t capacity);
void WuQueuePush(WuQueue* q, const void* item);
int32_t WuQueuePop(WuQueue* q, void* item);