NOISSUE add some arch probing code

This commit is contained in:
Petr Mrázek
2023-09-02 03:16:53 +02:00
parent 9ec1d43565
commit f458204a52
4 changed files with 67 additions and 0 deletions

View File

@@ -12,6 +12,18 @@ enum class KernelType {
Linux
};
enum class ArchitectureType {
Undetermined,
I386,
AMD64,
ARM64
};
struct Architecture {
ArchitectureType type;
QString raw;
};
struct KernelInfo
{
QString kernelName;
@@ -57,6 +69,8 @@ DistributionInfo getDistributionInfo();
uint64_t getSystemRam();
Architecture systemArchitecture();
bool isSystem64bit();
bool isCPU64bit();