Changeset 67733 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 30, 2017 1:35:14 PM (8 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/Global.h
r65158 r67733 89 89 */ 90 90 static const char *OSTypeId(VBOXOSTYPE aOSType); 91 92 /** 93 * Maps an OS type ID string to index into sOSTypes. 94 * @returns index on success, UINT32_MAX if not found. 95 */ 96 static uint32_t getOSTypeIndexFromId(const char *pszId); 91 97 92 98 /** -
trunk/src/VBox/Main/src-all/Global.cpp
r66816 r67733 528 528 529 529 return sOSTypes[0].id; 530 } 531 532 /** 533 * Maps an OS type ID string to index into sOSTypes. 534 * 535 * @returns index on success, UINT32_MAX if not found. 536 * @param pszId The OS type ID string. 537 */ 538 /* static */ uint32_t Global::getOSTypeIndexFromId(const char *pszId) 539 { 540 size_t const cOSTypes = Global::cOSTypes; 541 for (size_t i = 0; i < cOSTypes; ++i) 542 if (!RTStrICmp(pszId, Global::sOSTypes[i].id)) 543 return (uint32_t)i; 544 return UINT32_MAX; 530 545 } 531 546
Note:
See TracChangeset
for help on using the changeset viewer.