event.h File Reference

Event module header file. More...

#include "item.h"
#include "mcl_core/mcl_json_util.h"
#include "mcl_core/mcl_time_util.h"
Include dependency graph for event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  event_payload_t
 
struct  event_t
 

Functions

MCL_LOCAL mcl_error_t event_validate (event_t *event)
 

Variables

const char * mcl_event_versions []
 

Detailed Description

Event module header file.

Meta and payload parts of event type are initialized and filled in this module.

Definition in file event.h.

Function Documentation

MCL_LOCAL mcl_error_t event_validate ( event_t event)

This function checks whether all mandatory parameters of an event are set or not.

Parameters
[in]eventEvent to validate.
Returns

Definition at line 158 of file event.c.

References MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_INVALID_PARAMETER, MCL_NULL, MCL_OK, mcl_time_util_validate_timestamp(), MCL_TRUE, event_t::payload, event_payload_t::timestamp, event_payload_t::type, and event_payload_t::version.

Referenced by _store_add_data(), and connectivity_processor_exchange().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char* mcl_event_versions[]

Definition at line 17 of file event.c.

Referenced by _add_item_meta_payload(), and _item_meta_size().