11 #ifndef MCL_CORE_COMMON_H_ 12 #define MCL_CORE_COMMON_H_ 41 #define MCL_FUNCTION_LEAVE_LABEL mcl_function_leave_label 46 #define MCL_FALSE ((mcl_bool_t) 0) 51 #define MCL_TRUE ((mcl_bool_t) 1) 55 #define MCL_SIZE_MAX ((mcl_size_t) - 1) 58 #define MCL_NULL ((void *) 0) 60 #define MCL_NULL_CHAR '\0' 61 #define MCL_NULL_CHAR_SIZE 1 66 #define MCL_MAXIMUM_HTTP_PAYLOAD_SIZE (10485760) 157 #define MCL_NON_EXISTING_JSON_CHILD MCL_JSON_NON_EXISTING_CHILD 162 #define MCL_CORE_CODE_TO_STRING(code) (code < MCL_CORE_RETURN_CODE_END ? mcl_core_return_code_strings[code] : NULL) 195 const char *registration_uri);
228 const char *registration_uri);
271 #endif //MCL_CORE_COMMON_H_
mcl_error_t(* mcl_critical_section_enter_callback_t)(void)
mcl_credentials_save_rsa_callback_t rsa
Callback type to save RSA key.
MCL failed to connect to the host or proxy.
Credentials of the mcl_core are already up to date.
Credentials are not loaded.
If SHA256 calculation fails.
Agent is already onboarded to the server, hence the library did not try to onboard again...
Given log level is invalid.
The system does not support file handling.
Received parameter is null.
There is no element in the list.
If the response of server is HTTP 409.
Credentials are not saved.
A problem occured during SSL/TLS handshake.
If the response of server is unexpected.
If the response of server is HTTP 412.
If the response of server is HTTP 429.
End of security profile codes.
Requested operation is not supported.
If given content for Base64 encoding is bad.
If the response of server is HTTP 206.
mcl_credentials_load_rsa_callback_t rsa
Callback type to load RSA key.
If the response of server is HTTP 401.
Configuration setup module interface header file.
mcl_error_t(* mcl_credentials_save_shared_secret_callback_t)(const char *client_id, const char *client_secret, const char *registration_access_token, const char *registration_uri)
No access token exists in mcl_core_t handle.
Mindsphere certificate was not verified.
Neither initial access token nor loading/saving credentials callback functions are provided...
Host name given as a configuration parameter could not be resolved.
mcl_error_t(* mcl_credentials_load_shared_secret_callback_t)(char **client_id, char **client_secret, char **registration_access_token, char **registration_uri)
void(* mcl_critical_section_leave_callback_t)(void)
If the response of server is HTTP 413.
If the response of server is HTTP 201.
If the response of server is HTTP 400.
Agent is not onboarded to the server yet and does not possess an authentication key.
The streaming is active and shouldn't be interrupted.
MCL_CORE_EXPORT const char * mcl_core_return_code_strings[MCL_CORE_RETURN_CODE_END]
A problem occured when sending data to the network.
The server did not respond within a timeout period.
Server time is not received from the server.
The server certificate provided is in improper format and it can not be parsed.
If the response of server is HTTP 403.
mcl_credentials_save_shared_secret_callback_t shared_secret
Callback type to save shared secret.
A problem occured when receiving data from the network.
No more space is left to add an additional object.
mcl_error_t(* mcl_credentials_save_rsa_callback_t)(const char *client_id, const char *public_key, const char *private_key, const char *registration_access_token, const char *registration_uri)
The same name can not be added in the same level of json object.
General invalid parameter fail.
mcl_credentials_load_shared_secret_callback_t shared_secret
Callback type to load shared secret.
Proxy host name given as a configuration parameter could not be resolved.
Type of the value of the json object does not match the type requested.
Json child which we try to get doesn't exist in the parent Json object.
If the response of server is HTTP 404.
If agent cannot enter critical section.
mcl_error_t(* mcl_credentials_load_rsa_callback_t)(char **client_id, char **public_key, char **private_key, char **registration_access_token, char **registration_uri)