Host: don't use singleton

This commit is contained in:
李通洲
2023-06-12 22:53:12 +08:00
committed by 李通洲
parent 3bf83e45ed
commit 429d7c1ed9
9 changed files with 45 additions and 52 deletions
+3 -3
View File
@@ -59,10 +59,8 @@ static void getHostProductName(FFstrbuf* name)
ffStrbufClear(name);
}
void ffDetectHostImpl(FFHostResult* host)
const char* ffDetectHost(FFHostResult* host)
{
ffStrbufInit(&host->error);
ffStrbufInit(&host->productFamily);
getHostValue("/sys/devices/virtual/dmi/id/product_family", "/sys/class/dmi/id/product_family", &host->productFamily);
@@ -107,4 +105,6 @@ void ffDetectHostImpl(FFHostResult* host)
}
}
}
return NULL;
}