queue.h 526 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef CRYSTAL_STRUCTURES_QUEUE_H
#define CRYSTAL_STRUCTURES_QUEUE_H

#include "structures.h"

struct CryQueue;

struct CryQueue*  	cry_queue_new(void);
void            	cry_queue_free(struct CryQueue* queue, cry_free_handler handler);
int             	cry_queue_size(struct CryQueue* queue);

pointer         	cry_queue_front(struct CryQueue* queue);
pointer         	cry_queue_dequeue(struct CryQueue* queue);
void            	cry_queue_enqueue(struct CryQueue* queue, pointer data);


#endif // CRYSTAL_STRUCTURES_QUEUE_H