mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-22 16:13:13 +01:00
17 lines
367 B
C
17 lines
367 B
C
#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);
|