Global: renames FFformatArgType to FFArgType for future reuse

This commit is contained in:
李通洲
2026-03-12 15:07:19 +08:00
parent 05fa8b0994
commit 3a35f9735b
73 changed files with 646 additions and 643 deletions
+17 -17
View File
@@ -21,10 +21,10 @@ static void printZpool(FFZpoolOptions* options, FFZpoolResult* result, uint8_t i
{
ffStrbufClear(&buffer);
FF_PARSE_FORMAT_STRING_CHECKED(&buffer, &options->moduleArgs.key, ((FFformatarg[]) {
FF_FORMAT_ARG(index, "index"),
FF_FORMAT_ARG(result->name, "name"),
FF_FORMAT_ARG(result->guid, "guid"),
FF_FORMAT_ARG(options->moduleArgs.keyIcon, "icon"),
FF_ARG(index, "index"),
FF_ARG(result->name, "name"),
FF_ARG(result->guid, "guid"),
FF_ARG(options->moduleArgs.keyIcon, "icon"),
}));
}
@@ -81,19 +81,19 @@ static void printZpool(FFZpoolOptions* options, FFZpoolResult* result, uint8_t i
ffPercentAppendBar(&fragPercentageBar, result->fragmentation, options->percent, &options->moduleArgs);
FF_PRINT_FORMAT_CHECKED(buffer.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, ((FFformatarg[]) {
FF_FORMAT_ARG(result->name, "name"),
FF_FORMAT_ARG(result->guid, "guid"),
FF_FORMAT_ARG(result->state, "state"),
FF_FORMAT_ARG(usedPretty, "size-used"),
FF_FORMAT_ARG(allocatedPretty, "size-allocated"),
FF_FORMAT_ARG(totalPretty, "size-total"),
FF_FORMAT_ARG(usedPercentageNum, "used-percentage"),
FF_FORMAT_ARG(allocatedPercentageNum, "allocated-percentage"),
FF_FORMAT_ARG(fragPercentageNum, "frag-percentage"),
FF_FORMAT_ARG(usedPercentageBar, "used-percentage-bar"),
FF_FORMAT_ARG(allocatedPercentageBar, "allocated-percentage-bar"),
FF_FORMAT_ARG(fragPercentageBar, "frag-percentage-bar"),
FF_FORMAT_ARG(result->readOnly, "is-readonly"),
FF_ARG(result->name, "name"),
FF_ARG(result->guid, "guid"),
FF_ARG(result->state, "state"),
FF_ARG(usedPretty, "size-used"),
FF_ARG(allocatedPretty, "size-allocated"),
FF_ARG(totalPretty, "size-total"),
FF_ARG(usedPercentageNum, "used-percentage"),
FF_ARG(allocatedPercentageNum, "allocated-percentage"),
FF_ARG(fragPercentageNum, "frag-percentage"),
FF_ARG(usedPercentageBar, "used-percentage-bar"),
FF_ARG(allocatedPercentageBar, "allocated-percentage-bar"),
FF_ARG(fragPercentageBar, "frag-percentage-bar"),
FF_ARG(result->readOnly, "is-readonly"),
}));
}
}