1
0
Fork 0
mirror of https://github.com/tailix/libshmemq.git synced 2025-02-17 15:45:41 -05:00
libshmemq/examples/raw.h

37 lines
454 B
C

#ifndef _RAW_H
#define _RAW_H 1
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
static const size_t BUFFER1_SIZE = 200;
static const long BUFFER1_MAGIC = 0xCAFEBABE;
struct Queue {
size_t offset;
unsigned char data[];
};
enum MessageType {
FINISH,
ONEBYTE,
NULLSTR,
};
struct Message {
long magic;
size_t size;
enum MessageType type;
unsigned char data[];
};
#ifdef __cplusplus
}
#endif
#endif