Work in progress
This commit is contained in:
24
c_src/queue.h
Normal file
24
c_src/queue.h
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file is part of Emonk released under the MIT license.
|
||||
// See the LICENSE file for more information.
|
||||
|
||||
/* adapted by: Maas-Maarten Zeeman <mmzeeman@xs4all.nl */
|
||||
|
||||
#ifndef ESQLITE_QUEUE_H
|
||||
#define ESQLITE_QUEUE_H
|
||||
|
||||
#include "erl_nif.h"
|
||||
|
||||
typedef struct queue_t queue;
|
||||
|
||||
queue * queue_create();
|
||||
void queue_destroy(queue *queue);
|
||||
|
||||
int queue_has_item(queue *queue);
|
||||
|
||||
int queue_push(queue *queue, void* item);
|
||||
void* queue_pop(queue *queue);
|
||||
|
||||
int queue_send(queue *queue, void* item);
|
||||
void* queue_receive(queue *);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user