Generic Trace Generator (GTG) 0.1
Functions related to the events

Functions

trace_return_t addEventType (const char *alias, const char *contType, const char *name)
 Add an Event Type.
 
trace_return_t addEvent (varPrec time, const char *type, const char *cont, const char *val)
 Add an Event.
 

Detailed Description

Function Documentation

◆ addEvent()

trace_return_t addEvent ( varPrec time,
const char * type,
const char * cont,
const char * val )

Add an Event.

Parameters
timeTime the event happens
typeType of the event
contContainer that produced the event
valValue of the new event
Returns
TRACE_SUCCESS on success
An error code otherwise

◆ addEventType()

trace_return_t addEventType ( const char * alias,
const char * contType,
const char * name )

Add an Event Type.

Parameters
aliasAlias on the event type
contTypeType of container of these events
nameAlternative name of the event type
Returns
TRACE_SUCCESS on success
An error code otherwise