SAmapCallbacks Structure

The SAmapCallbacks member of the context lists the dynamic-mode functions:

Typedef struct tagAmapCallbacks {

   struct testContext *client_data;

   void (*NotifyAlmGen)(struct testContext *context,

                          struct AlarmInfo* pAI);

void (*NotifyAlmMod)(struct testContext *context,  

                          struct AlarmInfo* pAI,

                          int alm_mod_action);

void (*NotifyAlmDel)(struct testContext *context,  

                          struct AlarmInfo* pAI);

} SAmapCallbacks, *PSAmapCallbacks ;

The following table summarizes the fields on the SAmapCallbacks structure and their meaning:

Field

Description

Client_data

A pointer to the object which owns the CAmvConn instance

NotifyAlmGen

Function to notify the viewer when a new alarm has been generated or an existing alarm has been regenerated.

NotifyAlmMod

Function to notify the viewer of the change of state of an existing alarm.

NotifyAlmDel

Function to notify the viewer when an alarm has been deleted.

More information

CAmvConn Syntax.