custom_data.h
Go to the documentation of this file.
1 
9 #ifndef CUSTOM_DATA_H_
10 #define CUSTOM_DATA_H_
11 
12 #include "item.h"
13 #include "mcl_core/mcl_json_util.h"
14 
18 typedef struct custom_data_payload_t
19 {
20  char *version;
22  char *content_type;
23  char *type;
27 
31 typedef struct mcl_custom_data_t
32 {
36 
48 
49 #endif //CUSTOM_DATA_H_
#define MCL_LOCAL
const mcl_uint8_t * buffer
Buffer of custom data.
Definition: custom_data.h:21
size_t mcl_size_t
custom_data_payload_t * payload
Payload of custom data.
Definition: custom_data.h:34
void mcl_json_t
mcl_size_t size
Size of custom data.
Definition: custom_data.h:24
mcl_int32_t mcl_error_t
char * version
Version of custom data.
Definition: custom_data.h:20
mcl_json_t * details
Details of custom data.
Definition: custom_data.h:25
struct mcl_custom_data_t mcl_custom_data_t
mcl_item_t item_base
Item base of custom data.
Definition: custom_data.h:33
uint8_t mcl_uint8_t
Item module header file.
char * type
Type of custom data.
Definition: custom_data.h:23
MCL_LOCAL mcl_error_t custom_data_validate(custom_data_t *custom_data)
Definition: custom_data.c:104
char * content_type
Content type of custom data.
Definition: custom_data.h:22