You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
306 B
C
21 lines
306 B
C
3 years ago
|
#ifndef __P_QUEUE_H__
|
||
|
#define __P_QUEUE_H__
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
typedef enum PB_Q_STATUS {
|
||
|
PB_Q_GOOD = 0,
|
||
|
PB_Q_BAD = 1, // generic bad
|
||
|
PB_Q_BAD_LENGTH = 2,
|
||
|
PB_Q_NULL_BUFFER = 3,
|
||
|
PB_Q_NULL_QUEUE = 4
|
||
|
} PB_Q_STATUS;
|
||
|
|
||
|
typedef struct p_queue {
|
||
|
uint8_t *elements;
|
||
|
ssize_t len;
|
||
|
|
||
|
} p_queue;
|
||
|
|
||
|
#endif
|