data_lake_json.h File Reference

Data lake json module header file. More...

#include "data_lake_object.h"
Include dependency graph for data_lake_json.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

mcl_error_t data_lake_json_from_objects (data_lake_object_t **object_array, mcl_size_t array_size, const char *client_id, const char *subtenant_id, char **json)
 
mcl_error_t data_lake_json_match_signed_urls_with_objects (data_lake_object_t **object_array, mcl_size_t array_size, char *json, mcl_size_t json_size, mcl_size_t client_id_length)
 

Detailed Description

Data lake json module header file.

Definition in file data_lake_json.h.

Function Documentation

mcl_error_t data_lake_json_from_objects ( data_lake_object_t **  object_array,
mcl_size_t  array_size,
const char *  client_id,
const char *  subtenant_id,
char **  json 
)

This function generates a json string from an array of datalake objects.

Parameters
[in]object_arrayArray of data lake objects.
[in]array_sizeSize of array.
[in]client_idClient ID.
[in]subtenant_idSubtenant ID.
[out]jsonJson body for the request which is needed to generate upload urls.
Returns

Definition at line 46 of file data_lake_json.c.

References _data_lake_json_get_body_size_generate_upload_urls(), DELIMITER_LENGTH, generate_url_body_post_path_object, GENERATE_URL_BODY_POST_PATH_OBJECT_LENGTH, generate_url_body_pre_path_list, GENERATE_URL_BODY_PRE_PATH_LIST_LENGTH, generate_url_body_pre_path_object, GENERATE_URL_BODY_PRE_PATH_OBJECT_LENGTH, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FALSE, MCL_INVALID_PARAMETER, MCL_MALLOC, MCL_NULL, MCL_NULL_CHAR, MCL_NULL_CHAR_SIZE, MCL_OK, MCL_OUT_OF_MEMORY, mcl_string_util_memcpy(), mcl_string_util_strlen(), MCL_TRUE, SINGLE_CHARACTER_SIZE, SLASH_LENGTH, subtenant_id_key, and SUBTENANT_KEY_LENGTH.

Referenced by _generate_upload_urls().

Here is the call graph for this function:

Here is the caller graph for this function:

mcl_error_t data_lake_json_match_signed_urls_with_objects ( data_lake_object_t **  object_array,
mcl_size_t  array_size,
char *  json,
mcl_size_t  json_size,
mcl_size_t  client_id_length 
)

This function is used to match signed urls with objects.

Parameters
[in]object_arrayArray of data lake objects.
[in]array_sizeSize of array.
[in]jsonJson string to parse, does not need to be NULL terminated.
[in]json_sizeSize of json string.
[in]client_id_lengthLength of Client ID.
Returns

Definition at line 156 of file data_lake_json.c.

References _check_signed_urls(), _find_matching_object(), MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FREE, MCL_INVALID_PARAMETER, mcl_json_util_destroy(), mcl_json_util_get_array_item(), mcl_json_util_get_array_size(), mcl_json_util_get_object_item(), mcl_json_util_get_string(), mcl_json_util_parse(), MCL_NULL, MCL_NULL_CHAR_SIZE, MCL_OK, mcl_string_util_strlen(), MCL_WARN, object_path_key, object_urls_key, and SLASH_LENGTH.

Referenced by _generate_upload_urls().

Here is the call graph for this function:

Here is the caller graph for this function: