Board (macOS): detect board-id if available

Ref: https://github.com/GuillaumeGomez/sysinfo/pull/1545
This commit is contained in:
李通洲
2025-06-17 00:02:47 +08:00
parent 38887e7fbd
commit 3fcbd80ef0
2 changed files with 17 additions and 3 deletions
+4
View File
@@ -36,6 +36,10 @@ const char* getOthersByIokit(FFHostResult* host)
if (manufacturer)
ffCfStrGetString(manufacturer, &host->vendor);
FF_CFTYPE_AUTO_RELEASE CFStringRef version = IORegistryEntryCreateCFProperty(registryEntry, CFSTR("version"), kCFAllocatorDefault, kNilOptions);
if (version)
ffCfStrGetString(version, &host->version);
return NULL;
}