json.h
Go to the documentation of this file.
1 /*!**********************************************************************
2  *
3  * @copyright Copyright (C) 2016 Siemens Aktiengesellschaft.\n
4  * All rights reserved.
5  *
6  *************************************************************************
7  *
8  * @file json.h
9  * @date Jul 14, 2016
10  * @brief Json module header file.
11  *
12  * This module creates json strings for all data types. Also it builds event list from json.
13  *
14  ************************************************************************/
15 
16 #ifndef JSON_H_
17 #define JSON_H_
18 
19 #include "data_types.h"
20 #include "event_list.h"
21 
33 E_MCL_ERROR_CODE json_from_item_meta(item_meta_t *item_meta, string_t **json_string);
34 
47 
60 
72 E_MCL_ERROR_CODE json_from_event_payload(list_t *event_list_payload, string_t **json_string);
73 
74 #endif //JSON_H_
E_MCL_ERROR_CODE json_from_item_meta(item_meta_t *item_meta, string_t **json_string)
Creates item meta part of all types in json format.
Definition: json.c:37
This struct is used for building the payload of time series which is list of value sets...
Definition: data_types.h:121
E_MCL_ERROR_CODE json_from_data_source_configuration_payload(data_source_configuration_payload_t *payload, string_t **json_string)
Creates payload part of data source configuration in json format.
Definition: json.c:104
E_MCL_ERROR_CODE
MCL Error code definitions. Every function returning an error code uses this enum values...
Definition: mcl_common.h:137
This struct is used for building item.meta structure.
Definition: data_types.h:84
This struct is used for building data_source_configuratio.payload structure.
Definition: data_types.h:201
E_MCL_ERROR_CODE json_from_event_payload(list_t *event_list_payload, string_t **json_string)
Creates payload part of event set in json format.
Definition: json.c:129
E_MCL_ERROR_CODE json_from_time_series_payload(time_series_payload_t *payload, string_t **json_string)
Creates payload part of time series in json format.
Definition: json.c:76
Event list module header file.
Data types module header file.