event_list.c File Reference

Event list module implementation file. More...

#include "event_list.h"
#include "definitions.h"
#include "log_util.h"
#include "memory.h"
#include "mcl/mcl_event.h"
Include dependency graph for event_list.c:

Go to the source code of this file.

Functions

static E_MCL_ERROR_CODE _initialize_meta (event_list_t *event_list, const char *version)
 
E_MCL_ERROR_CODE event_list_initialize (const char *version, event_list_t **event_list)
 This function creates and initializes a data struct of event_list. More...
 
E_MCL_ERROR_CODE event_list_add_event (event_t *event, event_list_t *event_list)
 This function adds event to event_list. More...
 
void event_list_destroy (event_list_t **event_list)
 To destroy the event_list data struct. More...
 

Detailed Description

Event list module implementation file.


Date
Apr 13, 2017

Definition in file event_list.c.

Function Documentation

E_MCL_ERROR_CODE event_list_add_event ( event_t event,
event_list_t event_list 
)

This function adds event to event_list.

Parameters
[in]eventEvent handle which is going to be added to event_list.
[in]event_listWhich contains events with the same payload type and payload version.
Returns

Definition at line 60 of file event_list.c.

References DEBUG_ENTRY, DEBUG_LEAVE, event_list_t::events, and list_add().

Referenced by mcl_store_new_event().

Here is the call graph for this function:

Here is the caller graph for this function:

void event_list_destroy ( event_list_t **  event_list)

To destroy the event_list data struct.

Parameters
[in]event_listEvent set handle to be freed.

Definition at line 98 of file event_list.c.

References DEBUG_ENTRY, DEBUG_LEAVE, event_destroy(), list_destroy_with_content(), MCL_FREE, MCL_NULL, and string_destroy().

Referenced by _store_list_destroy_callback(), event_list_initialize(), and mcl_store_new_event().

Here is the call graph for this function:

Here is the caller graph for this function:

E_MCL_ERROR_CODE event_list_initialize ( const char *  version,
event_list_t **  event_list 
)

This function creates and initializes a data struct of event_list.

Parameters
[in]versionVersion of event.
[out]event_listCreated and initialized event_list data struct.
Returns

Definition at line 23 of file event_list.c.

References _initialize_meta(), ASSERT_STATEMENT_CODE_MESSAGE, DEBUG_ENTRY, DEBUG_LEAVE, event_list_destroy(), list_initialize(), MCL_ERROR_RETURN, MCL_FREE, MCL_NEW, MCL_NULL, MCL_OK, and MCL_OUT_OF_MEMORY.

Referenced by mcl_store_new_event().

Here is the call graph for this function:

Here is the caller graph for this function: