25 DEBUG_ENTRY(
"item_meta_t *meta = <%p>, const char *type = <%p>, const char *version = <%p>, mcl_int32_t severity = <%d>, const char *timestamp = <%p>, event_t **event = <%p>", meta, type, version, severity, timestamp, event)
34 (*event)->meta = meta;
44 (*event)->payload->correlation_id =
MCL_NULL;
45 (*event)->payload->timestamp =
MCL_NULL;
46 (*event)->payload->description =
MCL_NULL;
48 (*event)->payload->version =
MCL_NULL;
49 (*event)->payload->details =
MCL_NULL;
61 (*event)->payload->severity = severity;
69 MCL_DEBUG(
"payload initialize operation(s) has been failed!");
79 DEBUG_ENTRY(
"mcl_event_t *event = <%p>, E_MCL_EVENT_OPTION option = <%d>, const void *value = <%p>", event, option, value)
void string_destroy(string_t **string)
Destroys the allocated resources of the string.
Memory module header file.
Json util module header file.
E_MCL_ERROR_CODE string_initialize_new(const char *value, mcl_size_t value_length, string_t **string)
Initializes a new string_t object with the given value and length.
#define ASSERT_NOT_NULL(argument)
E_MCL_EVENT_OPTION
Optional parameters for event.
struct mcl_event_t mcl_event_t
This struct is used for building only one message of event.
Log utility module header file.
E_MCL_ERROR_CODE
MCL Error code definitions. Every function returning an error code uses this enum values...
void json_util_destroy(json_t **root)
This function destroys root.
Event module interface header file.
E_MCL_ERROR_CODE event_initialize(item_meta_t *meta, const char *type, const char *version, mcl_int32_t severity, const char *timestamp, event_t **event)
This function creates and initializes a data struct of event_t.
E_MCL_ERROR_CODE mcl_event_set_option(mcl_event_t *event, E_MCL_EVENT_OPTION option, const void *value)
This function is used to set optional payload fields of event.
General invalid parameter fail.
void event_destroy(event_t **event)
To destroy the event_t data struct.
E_MCL_ERROR_CODE random_generate_guid(string_t **guid)
Generates random guid.
Definitions module header file.
E_MCL_ERROR_CODE json_util_duplicate(const json_t *source_json, mcl_bool_t with_children, json_t **duplicated_json)
This function duplicates source_json as duplicated_json.
Event module header file.
Random module header file.
This struct is used for building a single event.
Time utility module header file.
This struct is used for json handling.
#define MCL_ERROR_RETURN(return_value,...)