Structure Summary
Structure Notification
Structure NotificationFilter
Structure NotificationListener
Structure NotificationHolder
   
Structure Details

Notification

/* * This structure is used to generated notification, it can be generated * from any source (ServerNotification, MonitorNotification, * TimerNotification, etc.). It has all the information like type, * source, sequence number, time and message about the event. */
U_INT32 type; /* Type of the notification */
Object *source; /* Sourch which generates notification */
U_LONG seqNum; /* Sequence number of the notification */
U_LONG timeStamp; /* Time at which notification is emitted */
CHAR *message; /* Description of the notification */
Object *extraInfo; /* To support structure extension */

NotificationFilter

/* * This structure contains filter method for the notifications. Before a * notification is broadcased to all its listener this "Filter" * method will be invoked inorder to do some filtering. */
/* Method to filter the broadcast trap */
U_CHAR (*IsNotificationEnabled)(Notification *, CHAR *);

NotificationListener

/* * This structure contains notification handler method for the * notification. After receving this notification the handler * method will do some action based on the agent implementation. */
/* Method to handle notification. */
void (*HandleNotification)(Notification *, CHAR *);

NotificationHolder

/* * Holder strcutre to store information about the notification listener * like fileter, handler methods and handBack. This structure will be * used by the notification broadcaster during AddNotificationListener() * and SendNotification() methods processing. */
CHAR *handback; /* Context name of the notification */
NotificationFilter *filter; /* Filter function of the notification
listener */
NotificationListener *handler; /* Handler function of the notification
listener */