Writing Monitors for the Event Monitoring Service (December 1999)
56 Chapter2
The EMS Application Programming Interface (API)
Function Descriptions
&error_code); /* RIGHT */
/* Example 2 -- A string threshold value */
rm_value_type threshold_value;
threshold_value.str = “DOWN”;
rm_set(obj, RmThresholdType, RM_STRING_TYPE, &error_code);
rm_set(obj, RmThresholdValue, &threshold_value,
&error_code);
5. RmSubclassChildObject is an rm_object_addr. The data is passed
by reference.
rm_object_addr subclass;
subclass = rm_create(RM_SUBCLASS_CHILD_OBJECT,
&error_code);
rm_set(obj, RmSubclassChildObject, subclass, &error_code);
/* OK, subclass is a rm_object_addr, which is an address */