added codes about AndroidVersion and SOC

This commit is contained in:
2023-07-12 19:14:51 +08:00
parent 151401f105
commit 37fa338586
5 changed files with 287 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
namespace hgl
{
struct AndroidVersion
{
unsigned int major;
unsigned int minor;
unsigned int patch;
char postfix;
};
/**
* 根据版本号取得Android的APILevel,如若出错返回-1
*/
const int GetAndroidAPILevel(const AndroidVersion &);
}//namespace hgl