Project

General

Profile

Statistics
| Revision:

root / proj / include / queue.h @ 277

History | View | Annotate | Download (428 Bytes)

1
#ifndef QUEUE_H_INCLUDED
2
#define QUEUE_H_INCLUDED
3

    
4
struct queue;
5
typedef struct queue queue_t;
6

    
7
const size_t queue_max_size;
8

    
9
queue_t* (queue_ctor )(void);
10
int      (queue_dtor )(queue_t *q);
11
size_t   (queue_size )(const queue_t *q);
12
int      (queue_empty)(const queue_t *q);
13
void     (queue_push )(queue_t *q, void *val);
14
void*    (queue_top  )(const queue_t *q);
15
void     (queue_pop  )(queue_t *q);
16

    
17
#endif //QUEUE_H_INCLUDED