aisd_lab/lab1/zad1/include/queue.h
2024-03-11 22:45:43 +01:00

18 lines
370 B
C

#ifndef _KIK_ZAD1_QUEUE_H
#define _KIK_ZAD1_QUEUE_H
#include <stdbool.h>
#include <stddef.h>
typedef struct Queue Queue;
Queue *queue_new(size_t length, size_t element_size);
void queue_free(Queue *queue);
// The caller must free the return value after use.
void *queue_read(Queue *queue);
bool queue_write(Queue *queue, void *value);
#endif // _KIK_ZAD1_QUEUE_H