Changeset 81137 in vbox for trunk/include/iprt
- Timestamp:
- Oct 8, 2019 8:28:31 AM (5 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mangling.h
r81071 r81137 2221 2221 # define RTSymlinkRead RT_MANGLER(RTSymlinkRead) 2222 2222 # define RTSymlinkReadA RT_MANGLER(RTSymlinkReadA) 2223 # define RTSystem FirmwareQueryType RT_MANGLER(RTSystemFirmwareQueryType)2224 # define RTSystem FirmwareQueryValue RT_MANGLER(RTSystemFirmwareQueryValue)2225 # define RTSystemFirmware FreeValue RT_MANGLER(RTSystemFirmwareFreeValue)2223 # define RTSystemQueryFirmwareType RT_MANGLER(RTSystemQueryFirmwareType) 2224 # define RTSystemQueryFirmwareBoolean RT_MANGLER(RTSystemQueryFirmwareBoolean) 2225 # define RTSystemFirmwareTypeName RT_MANGLER(RTSystemFirmwareTypeName) 2226 2226 # define RTSystemIsInsideVM RT_MANGLER(RTSystemIsInsideVM) 2227 2227 # define RTSystemQueryAvailableRam RT_MANGLER(RTSystemQueryAvailableRam) -
trunk/include/iprt/system.h
r81066 r81137 288 288 * @param penmType Where to return the firmware type on success. 289 289 */ 290 RTDECL(int) RTSystemFirmwareQueryType(PRTSYSFWTYPE penmType); 291 292 /** 293 * Enumeration for defining a system firmware value type. 294 */ 295 typedef enum RTSYSFWVALUETYPE 296 { 297 /** Invalid value type. */ 298 RTSYSFWVALUETYPE_INVALID = 0, 299 /** Value is of type boolean. */ 300 RTSYSFWVALUETYPE_BOOLEAN, 301 /** The usual 32-bit hack. */ 302 RTSYSFWVALUETYPE_32_BIT_HACK = 0x7fffffff 303 } RTSYSFWVALUETYPE; 304 305 /** 306 * Structure for keeping a system firmware value. 307 */ 308 typedef struct RTSYSFWVALUE 309 { 310 /** Value type. */ 311 RTSYSFWVALUETYPE enmType; 312 union 313 { 314 /** Boolean value. */ 315 bool fVal; 316 } u; 317 } RTSYSFWVALUE; 318 /** Pointer to a system firmware value. */ 319 typedef RTSYSFWVALUE *PRTSYSFWVALUE; 290 RTDECL(int) RTSystemQueryFirmwareType(PRTSYSFWTYPE penmType); 291 292 /** 293 * Translates the @a enmType value to a string. 294 * 295 * @returns Read-only name. 296 * @param enmType The firmware type to convert to string. 297 */ 298 RTDECL(const char *) RTSystemFirmwareTypeName(RTSYSFWTYPE enmType); 320 299 321 300 /** … … 342 321 * supported. 343 322 * @param enmProp The property to query the value of. 344 * @param pValue Where to return the value. This is always zero'ed. 345 */ 346 RTDECL(int) RTSystemFirmwareQueryValue(RTSYSFWPROP enmProp, PRTSYSFWVALUE pValue); 347 348 /** 349 * Free any allocations associated with a value returned by 350 * RTSystemFirmwareQueryValue(). 351 * 352 * @param pValue Result of a successful RTSystemFirmwareQueryValue() call. 353 */ 354 RTDECL(void) RTSystemFirmwareFreeValue(PRTSYSFWVALUE pValue); 323 * @param pfValue Where to return the value. 324 */ 325 RTDECL(int) RTSystemQueryFirmwareBoolean(RTSYSFWPROP enmProp, bool *pfValue); 355 326 356 327 #ifdef RT_OS_WINDOWS
Note:
See TracChangeset
for help on using the changeset viewer.