44 typedef struct OSEnumItem {
45 const OSUTF8CHAR* name;
51 typedef struct OSEnumItemU32 {
52 const OSUTF8CHAR* name;
58 typedef struct OSBigEnumItem {
59 const OSUTF8CHAR* name;
65 typedef struct OSNumericEnumItem {
70 typedef struct OSNumericEnumItemU32 {
73 } OSNumericEnumItemU32;
75 typedef struct OSNumericEnumItem64 {
78 } OSNumericEnumItem64;
80 typedef struct OSNumericEnumItemU64 {
83 } OSNumericEnumItemU64;
97 (
const OSUTF8CHAR* strValue,
size_t strValueSize,
98 const OSEnumItem enumTable[], OSUINT16 enumTableSize);
112 (
const OSUTF8CHAR* strValue,
size_t strValueSize,
113 const OSEnumItemU32 enumTable[], OSUINT16 enumTableSize);
128 (
const OSUTF8CHAR* strValue,
size_t strValueSize,
129 const OSBigEnumItem enumTable[], OSUINT16 enumTableSize);
142 (OSINT32 value,
const OSEnumItem enumTable[],
size_t enumTableSize);
155 (OSUINT32 value,
const OSEnumItemU32 enumTable[],
size_t enumTableSize);
168 (
const char* value,
const OSBigEnumItem enumTable[],
size_t enumTableSize);
180 (OSINT32 ivalue,
const OSNumericEnumItem enumTable[], OSUINT16 enumTableSize);
182 EXTERNRT
int rtxTestNumericEnumU32
183 (OSUINT32 ivalue,
const OSNumericEnumItemU32 enumTable[], OSUINT16 enumTableSize);
185 EXTERNRT
int rtxTestNumericEnum64
186 (OSINT64 ivalue,
const OSNumericEnumItem64 enumTable[], OSUINT16 enumTableSize);
188 EXTERNRT
int rtxTestNumericEnumU64
189 (OSUINT64 ivalue,
const OSNumericEnumItemU64 enumTable[], OSUINT16 enumTableSize);
EXTERNRT OSINT32 rtxLookupEnumU32(const OSUTF8CHAR *strValue, size_t strValueSize, const OSEnumItemU32 enumTable[], OSUINT16 enumTableSize)
This function will return the numeric value for the given enumerated identifier string.
EXTERNRT OSINT32 rtxLookupBigEnumByValue(const char *value, const OSBigEnumItem enumTable[], size_t enumTableSize)
Lookup enum by stringified version of value.
EXTERNRT OSINT32 rtxLookupEnumByValue(OSINT32 value, const OSEnumItem enumTable[], size_t enumTableSize)
Lookup enum by integer value.
EXTERNRT int rtxTestNumericEnum(OSINT32 ivalue, const OSNumericEnumItem enumTable[], OSUINT16 enumTableSize)
This function determines if the given numeric enumerated value is within the defined numeration set...
EXTERNRT OSINT32 rtxLookupBigEnum(const OSUTF8CHAR *strValue, size_t strValueSize, const OSBigEnumItem enumTable[], OSUINT16 enumTableSize)
This function will return the numeric value for the given enumerated identifier string.
Common run-time context definitions.
EXTERNRT OSINT32 rtxLookupEnum(const OSUTF8CHAR *strValue, size_t strValueSize, const OSEnumItem enumTable[], OSUINT16 enumTableSize)
This function will return the numeric value for the given enumerated identifier string.
EXTERNRT OSINT32 rtxLookupEnumU32ByValue(OSUINT32 value, const OSEnumItemU32 enumTable[], size_t enumTableSize)
Lookup enum by integer value (Unsiged 32-bit integer).