PowerAdapter (Linux): add support

This commit is contained in:
Carter Li
2024-01-04 13:54:11 +08:00
parent b6b1993f62
commit 5c75e271ef
6 changed files with 103 additions and 8 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ void ffPrintPowerAdapter(FFPowerAdapterOptions* options)
{
FF_LIST_AUTO_DESTROY results = ffListCreate(sizeof(FFPowerAdapterResult));
const char* error = ffDetectPowerAdapterImpl(&results);
const char* error = ffDetectPowerAdapter(&results);
if (error)
{
@@ -99,7 +99,7 @@ void ffGeneratePowerAdapterJsonResult(FF_MAYBE_UNUSED FFPowerAdapterOptions* opt
{
FF_LIST_AUTO_DESTROY results = ffListCreate(sizeof(FFPowerAdapterResult));
const char* error = ffDetectPowerAdapterImpl(&results);
const char* error = ffDetectPowerAdapter(&results);
if (error)
{