mcl_communication.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 mcl_communication.h
9  * @date Sep 8, 2016
10  * @brief Communication module interface header file.
11  *
12  * This module implements MCL communication interface.
13  *
14  ************************************************************************/
15 
16 #ifndef MCL_COMMUNICATION_H_
17 #define MCL_COMMUNICATION_H_
18 
19 #include "mcl/mcl_store.h"
20 #include "mcl/mcl_configuration.h"
21 #include "mcl/mcl_list.h"
22 
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 
32 
61 
73 
99 
127 
140 
172 
205  extern MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_exchange(mcl_communication_t *communication, mcl_store_t *store, void **reserved);
206 
236  extern MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_process(mcl_communication_t *communication, mcl_store_t *store, void **reserved);
237 
245 
253 
268 
283 
284 #ifdef __cplusplus
285 }
286 #endif
287 
288 #endif //MCL_COMMUNICATION_H_
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_onboard(mcl_communication_t *communication)
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_rotate_key(mcl_communication_t *communication)
#define MCL_EXPORT
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_get_last_access_token(mcl_communication_t *communication, char **token)
Returns the lastly received oauth access token, NULL if server time is not received.
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_update_security_information(mcl_communication_t *communication)
Configuration module interface header file.
MCL_EXPORT mcl_bool_t mcl_communication_is_initialized(mcl_communication_t *communication)
Can be used to determine if communication handle is initialized.
E_MCL_ERROR_CODE
MCL Error code definitions. Every function returning an error code uses this enum values...
Definition: mcl_common.h:137
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_destroy(mcl_communication_t **communication)
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_exchange(mcl_communication_t *communication, mcl_store_t *store, void **reserved)
struct mcl_store_t mcl_store_t
Definition: mcl_store.h:34
List module interface file.
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_initialize(mcl_configuration_t *configuration, mcl_communication_t **communication)
Definition: communication.c:26
MCL_EXPORT mcl_bool_t mcl_communication_is_onboarded(mcl_communication_t *communication)
Can be used to determine if communication handle is onboarded.
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_process(mcl_communication_t *communication, mcl_store_t *store, void **reserved)
mcl_uint8_t mcl_bool_t
Definition: mcl_common.h:47
Store module interface header file.
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_get_access_token(mcl_communication_t *communication)
struct mcl_communication_t mcl_communication_t
MCL_EXPORT E_MCL_ERROR_CODE mcl_communication_get_last_token_time(mcl_communication_t *communication, char **token_time)
Returns the time when lastly received oauth access token is received.