Changeset 101460 in vbox
- Timestamp:
- Oct 17, 2023 8:32:09 AM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 159529
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/Global.h
r101215 r101460 202 202 203 203 /** 204 * Stringify a platform architecture to a string. 205 * 206 * @returns Platform architecture as a string. 207 * @param aEnmArchitecture Platform architecture to convert. 208 */ 209 static const char *stringifyPlatformArchitecture(PlatformArchitecture_T aEnmArchitecture); 210 211 /** 204 212 * Stringify a storage controller type. 205 213 * -
trunk/src/VBox/Main/include/PlatformImpl.h
r101174 r101460 73 73 public: 74 74 75 // static public helper functions76 static const char *s_platformArchitectureToStr(PlatformArchitecture_T enmArchitecture);77 78 public:79 80 75 // wrapped IPlatform properties 81 76 HRESULT getArchitecture(PlatformArchitecture_T *aArchitecture); -
trunk/src/VBox/Main/src-all/Global.cpp
r101425 r101460 767 767 } 768 768 769 /* static */ const char * 770 Global::stringifyPlatformArchitecture(PlatformArchitecture_T aEnmArchitecture) 771 { 772 switch (aEnmArchitecture) 773 { 774 case PlatformArchitecture_x86: return "x86"; 775 case PlatformArchitecture_ARM: return "ARM"; 776 default: 777 break; 778 } 779 780 AssertFailedReturn("<None>"); 781 } 782 769 783 #if 0 /* unused */ 770 784 -
trunk/src/VBox/Main/src-server/PlatformImpl.cpp
r101174 r101460 528 528 529 529 return setErrorBoth(VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED, VERR_PLATFORM_ARCH_NOT_SUPPORTED, 530 "Platform '%s' not supported", Platform::s_platformArchitectureToStr(m->bd->architectureType));530 "Platform '%s' not supported", Global::stringifyPlatformArchitecture(m->bd->architectureType)); 531 531 } 532 532 … … 564 564 565 565 return setErrorBoth(VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED, VERR_PLATFORM_ARCH_NOT_SUPPORTED, 566 "Platform '%s' not supported", Platform::s_platformArchitectureToStr(m->bd->architectureType));566 "Platform '%s' not supported", Global::stringifyPlatformArchitecture(m->bd->architectureType)); 567 567 } 568 568 … … 751 751 { 752 752 m->bd->architectureType = aArchitecture; 753 LogRel(("Platform architecture set to '%s'\n", Platform::s_platformArchitectureToStr(m->bd->architectureType)));753 LogRel(("Platform architecture set to '%s'\n", Global::stringifyPlatformArchitecture(m->bd->architectureType))); 754 754 } 755 755 … … 848 848 } 849 849 850 /**851 * Converts a platform architecture to a string.852 *853 * @returns Platform architecture as a string.854 * @param enmArchitecture Platform architecture to convert.855 */856 /* static */857 const char *Platform::s_platformArchitectureToStr(PlatformArchitecture_T enmArchitecture)858 {859 switch (enmArchitecture)860 {861 case PlatformArchitecture_x86: return "x86";862 case PlatformArchitecture_ARM: return "ARM";863 default:864 break;865 }866 867 AssertFailedReturn("<None>");868 }869
Note:
See TracChangeset
for help on using the changeset viewer.