This repository has been archived on 2026-04-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bhlib/include/BH/Queue.h

64 lines
735 B
C
Raw Normal View History

2025-01-18 17:24:36 +03:00
#ifndef BH_QUEUE_H
#define BH_QUEUE_H
#include "Common.h"
2025-01-18 17:24:36 +03:00
typedef struct BH_Queue BH_Queue;
2025-01-18 17:24:36 +03:00
BH_Queue *BH_QueueNew(void);
2025-01-18 17:24:36 +03:00
void BH_QueueFree(BH_Queue *queue);
2025-01-18 17:24:36 +03:00
void BH_QueueClear(BH_Queue *queue);
2025-01-18 17:24:36 +03:00
int BH_QueueReserve(BH_Queue *queue,
size_t size);
2025-01-18 17:24:36 +03:00
int BH_QueueInsert(BH_Queue *queue,
void *value);
2025-01-18 17:24:36 +03:00
void BH_QueueRemove(BH_Queue *queue);
2025-01-18 17:24:36 +03:00
int BH_QueueFront(BH_Queue *queue,
void **value);
2025-01-18 17:24:36 +03:00
int BH_QueueEmpty(BH_Queue *queue);
2025-01-18 17:24:36 +03:00
size_t BH_QueueSize(BH_Queue *queue);
2025-01-18 17:24:36 +03:00
size_t BH_QueueCapacity(BH_Queue *queue);
2025-01-18 17:24:36 +03:00
void *BH_QueueIterNext(BH_Queue *queue,
void *iter);
2025-01-18 17:24:36 +03:00
void *BH_QueueIterValue(void *iter);
2025-01-18 17:24:36 +03:00
#endif /* BH_QUEUE_H */