2018-07-20 03:09:51 +02:00
|
|
|
#ifndef DATA_H
|
|
|
|
#define DATA_H
|
|
|
|
/**
|
|
|
|
* \file data.h
|
|
|
|
* \brief This header stores all the custom data type definition
|
|
|
|
*/
|
|
|
|
|
2018-07-22 20:30:08 +02:00
|
|
|
#include <stdlib.h>
|
2018-07-20 03:09:51 +02:00
|
|
|
|
2018-07-22 20:30:08 +02:00
|
|
|
/** \brief use this data type for buffer */
|
2018-07-23 02:27:03 +02:00
|
|
|
typedef struct BufferStruct BufferStruct;
|
2018-07-20 03:09:51 +02:00
|
|
|
|
2018-07-23 03:39:26 +02:00
|
|
|
struct MemoryStruct {
|
|
|
|
char *memory;
|
2018-07-22 20:30:08 +02:00
|
|
|
size_t size;
|
2018-07-22 05:26:22 +02:00
|
|
|
};
|
2018-07-20 03:09:51 +02:00
|
|
|
|
2018-07-23 03:39:26 +02:00
|
|
|
typedef struct MemoryStruct MemoryStruct;
|
|
|
|
|
2018-07-20 03:09:51 +02:00
|
|
|
#endif
|