Custom data module header file. More...
#include "data_types.h"
Go to the source code of this file.
Data Structures | |
struct | custom_data_t |
This struct is used for building the custom data type. More... | |
Functions | |
E_MCL_ERROR_CODE | custom_data_initialize (const char *version, const char *type, const char *routing, custom_data_t **custom_data) |
Initializes custom_data . More... | |
void | custom_data_destroy (custom_data_t **custom_data) |
Destroys custom_data . More... | |
Custom data module header file.
Definition in file custom_data.h.
void custom_data_destroy | ( | custom_data_t ** | custom_data | ) |
Destroys custom_data
.
[in] | custom_data | All meta and payload details, content etc. stored in this data struct. |
Definition at line 72 of file custom_data.c.
References DEBUG_ENTRY, DEBUG_LEAVE, json_util_destroy(), MCL_FREE, MCL_NULL, and string_destroy().
Referenced by _store_list_destroy_callback(), custom_data_initialize(), mcl_store_new_custom_data(), and stream_data_destroy().
E_MCL_ERROR_CODE custom_data_initialize | ( | const char * | version, |
const char * | type, | ||
const char * | routing, | ||
custom_data_t ** | custom_data | ||
) |
Initializes custom_data
.
[in] | version | Meta version. |
[in] | type | Meta type. |
[in] | routing | Routing information in meta description of custom_data . This parameter is optional and can be NULL. |
[out] | custom_data | Custom data handle to operate on. |
Definition at line 24 of file custom_data.c.
References _initialize_custom_data_meta_fields(), ASSERT_CODE_MESSAGE, ASSERT_STATEMENT_CODE_MESSAGE, custom_data_destroy(), DEBUG_ENTRY, DEBUG_LEAVE, MCL_NEW, MCL_NULL, MCL_OK, and MCL_OUT_OF_MEMORY.
Referenced by mcl_store_new_custom_data(), and stream_data_initialize().