Neonode zForce(TM) SDK
Queue.h
Go to the documentation of this file.
1 
12 #ifndef QUEUE_QUEUE_H
13 #define QUEUE_QUEUE_H
14 
15 #ifndef ZFORCECOMMON_H
16  #error Please include "zForceCommon.h" before this file.
17 #endif // ZFORCECOMMON_H
18 
22 typedef struct Queue Queue;
26 struct Queue
27 {
29  void * QueuePrivate;
30 
44  void ( * Destructor)(Queue * self);
62  bool ( * Enqueue)(Queue * self, void * payload);
83  void * ( * Dequeue)(Queue * self, uint32_t timeoutMilliSeconds);
84 };
85 
99 DLLEXTERNAL Queue * Queue_New (void);
100 
101 #endif // QUEUE_QUEUE_H
102 
zForce * zForce
Pointer to zForce.
Definition: Queue.h:28
bool(* Enqueue)(Queue *self, void *payload)
Add an entry to the queue.
Definition: Queue.h:62
The Queue struct.
Definition: Queue.h:26
Main struct.
Definition: zForce.h:29
void * QueuePrivate
Private Queue data.
Definition: Queue.h:29
void(* Destructor)(Queue *self)
Destroys the Queue, freeing any resources but NOT contents.
Definition: Queue.h:44
DLLEXTERNAL Queue * Queue_New(void)
Create a new Queue.