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.
23 lines
345 B
C
23 lines
345 B
C
#ifndef __PBUFFER_H__
|
|
#define __PBUFFER_H__
|
|
|
|
#define MAX_QUEUE_SIZE (512)
|
|
#define MAX_CBUFFER_SIZE (512)
|
|
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
typedef enum PB_STATUS
|
|
{
|
|
PB_GOOD = 0,
|
|
PB_BAD = 1,
|
|
PB_BAD_BUFFER_SIZE = 2,
|
|
PB_NULL_BUFFER = 3,
|
|
PB_NULL_DATA = 4,
|
|
PB_EMPTY_QUEUE = 5,
|
|
PB_FULL_QUEUE = 6
|
|
} PB_STATUS;
|
|
|
|
#endif
|