HP Model 755/125cL HP-UX DMI 2.0 Developer's Guide: HP-UX/HP 9000 Computers, - Page 65

DmiComponentList, DmiDataUnion, DmiEnumInfo

Page 65 highlights

Management Interface Data Structures DMI Data Structures DmiComponentList This data structure describes a conformant array of DmiComponentInfo. Table 8-16 DmiComponentList Field Name size list Description Array elements Array data typedef struct DmiComponentList { DmiUnsigned_t size; DmiComponentInfo_t* list; } DmiComponentList_t; DmiDataUnion This data structure is a discriminated union of DMI data types. Table 8-17 DmiDataUnion Field Name type value Description Discriminator for the union Union of DMI attribute data types typedef union switch (DmiDataType_t type) value { case MIF_COUNTER: DmiCounter_t case MIF_COUNTER64: DmiCounter64_t case MIF_GAUGE: DmiGauge_t case MIF_INTEGER: DmiInteger_t case MIF_INTEGER64: DmiInteger64_t case MIF_OCTETSTRING: DmiOctetString_t* case MIF_DISPLAYSTRING: DmiString_t* case MIF_DATE: DmiTimestamp_t* } DmiDataUnion_t; counter; counter64; gauge; integer; integer64; octetstring; string; date; DmiEnumInfo This data structure associates an integer value with descriptive text. Table 8-18 DmiEnumInfo Field Name name value Description Enumeration name Enumeration value typedef struct DmiEnumInfo { DmiString_t* name; DmiInteger_t value; } DmiEnumInfo_t; Chapter 8 65

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134

Chapter 8
65
Management Interface Data Structures
DMI Data Structures
DmiComponentList
This data structure describes a conformant array of
DmiComponentInfo.
typedef struct DmiComponentList {
DmiUnsigned_t
size;
DmiComponentInfo_t* list;
} DmiComponentList_t;
DmiDataUnion
This data structure is a discriminated union of DMI data types.
typedef union
switch (DmiDataType_t type) value {
case MIF_COUNTER:
DmiCounter_t
counter;
case MIF_COUNTER64:
DmiCounter64_t
counter64;
case MIF_GAUGE:
DmiGauge_t
gauge;
case MIF_INTEGER:
DmiInteger_t
integer;
case MIF_INTEGER64:
DmiInteger64_t
integer64;
case MIF_OCTETSTRING:
DmiOctetString_t*
octetstring;
case MIF_DISPLAYSTRING: DmiString_t*
string;
case MIF_DATE:
DmiTimestamp_t*
date;
} DmiDataUnion_t;
DmiEnumInfo
This data structure associates an integer value with descriptive text.
typedef struct DmiEnumInfo {
DmiString_t*
name;
DmiInteger_t
value;
} DmiEnumInfo_t;
Table 8-16
DmiComponentList
Field Name
Description
size
Array elements
list
Array data
Table 8-17
DmiDataUnion
Field Name
Description
type
Discriminator for the union
value
Union of DMI attribute data types
Table 8-18
DmiEnumInfo
Field Name
Description
name
Enumeration name
value
Enumeration value