SDK API wrappers
The common library provides wrappers to the SDK APIs. These ensure that the multi-threading nuances are taken care of. This is implemented in apiWrapper file.
Function documentation

apiAgentLidListGetNext: This function gets the next lid value pair in a previously created lid list.
Parameters:
i_LidListHandle |
pointer to a previously created lid list. |
i_lidNumber* |
pointer to memory that will be filled by the next lid number in the list. |
i_lidValue* |
pointer to memory that will be filled by the next value in the list. |
Returns:
Returns the API success or failure accordingly.

This is an API wrapper function to retrieve non-periodic LIDs.
Parameters:
in |
i_lidNumber |
lid number whose value to be retrieved |
out |
i_lidValue |
lid value returned |
Returns:
Returns the API success or failure accordingly.

apiLidListResetIteration: This function resets the iteration on a lid list. MUST BE USED after lid list is used for other purposes.
Parameters:
i_LidListHandle* |
pointer to a previously created lid list. |
Returns:
Returns the API success or failure accordingly.

This API wrapper function is used by agents to log an event.
Parameters:
in |
i_eventId |
event id |
in |
i_eventData |
data string to be added |
in |
i_eventDataLength |
length of the data string |
in |
i_featureId |
feature if |
in |
i_sendAsAlarm |
send the event as alarm or not? |
Returns:
Returns the API success or failure accordingly.

This API wrapper function is used by agents to log an event with a timestamp.
Parameters:
in |
i_eventId |
event id |
in |
i_eventData |
data string to be added |
in |
i_eventDataLength |
length of the data string |
in |
i_featureId |
feature if |
in |
i_sendAsAlarm |
send the event as alarm or not? |
in |
i_timestamp |
current time stamp to be logged |
Returns:
Returns the API success or failure accordingly.

This API wrapper function is used to write contents into agentdata.
Parameters:
in |
i_featureId |
feature id |
in |
i_data |
Data string to be added |
in |
i_length |
length of the data string |
Returns:
Returns the API success or failure accordingly.

This API wrapper function is used to write contents into agentdata using timestamp.
Parameters:
in |
i_featureId |
feature id |
in |
i_data |
data string to be added |
in |
i_length |
length of the data string |
in |
i_timestamp |
current time stamp to be logged |
Returns:
Returns the API success or failure accordingly.

CheckAPIErrorStatus: This function checks the API return type error status.
Parameters:
i_APIRetVal |
return value of an API call |
Returns:
Returns false if API success or failure accordingly.