http_processor.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 http_processor.h
9  * @date Jul 19, 2016
10  * @brief HTTP processor module header file.
11  *
12  * This module has the center responsibility of running logic of MCL.
13  * It manages the collection of the data stored in store_t, generation of HTTP request messages, performing
14  * send/receive operations and parsing the HTTP response message.
15  *
16  ************************************************************************/
17 
18 #ifndef HTTP_PROCESSOR_H_
19 #define HTTP_PROCESSOR_H_
20 
21 #include "store.h"
22 #include "http_client.h"
23 #include "security_handler.h"
24 #include "jwt.h"
25 #include "file.h"
26 #include "event_list.h"
27 
31 typedef struct http_processor_t
32 {
37 
39 {
46 
47 typedef struct raw_data_context_t
48 {
52 
73 
97 
110 
134 
167 E_MCL_ERROR_CODE http_processor_exchange(http_processor_t *http_processor, store_t *store, void **reserved);
168 
204 E_MCL_ERROR_CODE http_processor_stream(http_processor_t *http_processor, store_t *store, void **reserved);
205 
213 void http_processor_destroy(http_processor_t **http_processor);
214 
215 #endif //HTTP_PROCESSOR_H_
HTTP Request Handle.
Definition: http_request.h:79
http_client_t * http_client
Http client handler.
http_request_t * request
It is used to build http request messages.
E_MCL_ERROR_CODE http_processor_update_security_information(http_processor_t *http_processor)
configuration_t * configuration
Configuration for mcl initialization.
E_MCL_ERROR_CODE previous_result
Previous result of callback.
Store module header file.
File module header file.
mcl_uint8_t call_count
Call count of stream callback.
E_MCL_ERROR_CODE
MCL Error code definitions. Every function returning an error code uses this enum values...
Definition: mcl_common.h:137
E_MCL_ERROR_CODE http_processor_stream(http_processor_t *http_processor, store_t *store, void **reserved)
Exchange operation logic with streaming.
mcl_size_t total_size
Total size of raw data context.
HTTP Client Handler definition. Members are implementation specific and are declared in implementatio...
Definition: store.h:77
E_MCL_ERROR_CODE http_processor_register(http_processor_t *http_processor)
void http_processor_destroy(http_processor_t **http_processor)
To destroy the HTTP Processor Handler.
uint8_t mcl_uint8_t
Definition: mcl_common.h:43
E_MCL_ERROR_CODE http_processor_initialize(configuration_t *configuration, http_processor_t **http_processor)
Http Processor Initialize function.
store_t * store
Holds references to data to exchange.
mcl_size_t last_index
Last index of raw data context.
size_t mcl_size_t
Definition: mcl_common.h:38
Handle struct for security_handler module.
E_MCL_ERROR_CODE http_processor_exchange(http_processor_t *http_processor, store_t *store, void **reserved)
Exchange operation logic.
E_MCL_ERROR_CODE http_processor_get_access_token(http_processor_t *http_processor)
security_handler_t * security_handler
Security handler.
http_processor_t * http_processor
Http processer handle.
Event list module header file.
HTTP client module header file.
JWT module header file.
Security handler module header file.