2024-03-10 00:45:57 +01:00
|
|
|
#ifndef _KIK_ZAD1_QUEUE_H
|
|
|
|
#define _KIK_ZAD1_QUEUE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
typedef struct Queue Queue;
|
|
|
|
|
2024-03-10 01:16:13 +01:00
|
|
|
Queue *queue_new(size_t size, size_t element_size);
|
2024-03-10 00:45:57 +01:00
|
|
|
|
|
|
|
void *queue_read(Queue *queue);
|
|
|
|
|
|
|
|
bool queue_write(Queue *queue, void *value);
|
|
|
|
|
|
|
|
#endif // _KIK_ZAD1_QUEUE_H
|