HP Visualize c160L HP-UX DMI 2.0 Developer's Guide: HP-UX/HP 9000 Computers, - Page 44
Component Provider Functions
View all HP Visualize c160L manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 44 highlights
Component Interface Functions Component Provider Functions Component Provider Functions These functions are the entry points into the component instrumentation that the SP calls to get or set attribute values, or to add or delete whole rows of information from the MIF database. All of the Component Provider Functions for the Direct Interface Component Instrumentation example reside in the source file /usr/dmi/examples/ci/systemExample/ci_cpfc.c. Similarly, all of the Component Provider Functions for the Overlay Interface Component Instrumentation example reside in the source file /usr/dmi/examples/oi/names.c. There are two types of functions for calling component instrumentation within the Component Provider Functions. The first type lends itself to getting and setting attribute values for single attributes in a group. These functions can be applied to either scalar or tabular data. • "CiGetAttribute()" on page 44 • "CiGetNextAttribute()" on page 45 • "CiReleaseAttribute()" on page 45 • "CiReserveAttribute()" on page 45 • "CiSetAttribute()" on page 45 • "CiAddRow()" on page 46 • "CiDeleteRow()" on page 46 CiGetAttribute() Corresponds directly to the Management Interface call DmiGetAttribute(). Gets the value of a single attribute within a group. DmiErrorStatus_t DMI_API CiGetAttribute( /* [in] */ DmiId_t componentId, /* [in] */ DmiId_t groupId, /* [in] */ DmiId_t attributeId, /* [in] */ DmiString_t * language, /* [in] */ DmiAttributeValues_t * keyList, /* [out] */ DmiAttributeData_t ** data); 44 Chapter 6