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
+34 -34
View File
@@ -46,14 +46,14 @@ static void printDisk(FFDiskOptions* options, const FFDisk* disk, uint32_t index
}
FF_PARSE_FORMAT_STRING_CHECKED(&key, &options->moduleArgs.key, ((FFformatarg[]) {
FF_FORMAT_ARG(disk->mountpoint, "mountpoint"),
FF_FORMAT_ARG(disk->name, "name"),
FF_FORMAT_ARG(disk->mountFrom, "mount-from"),
FF_FORMAT_ARG(options->moduleArgs.keyIcon, "icon"),
FF_FORMAT_ARG(index, "index"),
FF_FORMAT_ARG(disk->filesystem, "filesystem"),
FF_FORMAT_ARG(mountpointLink, "mountpoint-link"),
FF_FORMAT_ARG(nameLink, "name-link"),
FF_ARG(disk->mountpoint, "mountpoint"),
FF_ARG(disk->name, "name"),
FF_ARG(disk->mountFrom, "mount-from"),
FF_ARG(options->moduleArgs.keyIcon, "icon"),
FF_ARG(index, "index"),
FF_ARG(disk->filesystem, "filesystem"),
FF_ARG(mountpointLink, "mountpoint-link"),
FF_ARG(nameLink, "name-link"),
}));
}
@@ -159,32 +159,32 @@ static void printDisk(FFDiskOptions* options, const FFDisk* disk, uint32_t index
FFTimeGetAgeResult age = ffTimeGetAge(disk->createTime, now);
FF_PRINT_FORMAT_CHECKED(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, ((FFformatarg[]) {
FF_FORMAT_ARG(usedPretty, "size-used"),
FF_FORMAT_ARG(totalPretty, "size-total"),
FF_FORMAT_ARG(bytesPercentageNum, "size-percentage"),
FF_FORMAT_ARG(disk->filesUsed, "files-used"),
FF_FORMAT_ARG(disk->filesTotal, "files-total"),
FF_FORMAT_ARG(filesPercentageNum, "files-percentage"),
FF_FORMAT_ARG(isExternal, "is-external"),
FF_FORMAT_ARG(isHidden, "is-hidden"),
FF_FORMAT_ARG(disk->filesystem, "filesystem"),
FF_FORMAT_ARG(disk->name, "name"),
FF_FORMAT_ARG(isReadOnly, "is-readonly"),
{FF_FORMAT_ARG_TYPE_STRING, ffTimeToShortStr(disk->createTime), "create-time"},
FF_FORMAT_ARG(bytesPercentageBar, "size-percentage-bar"),
FF_FORMAT_ARG(filesPercentageBar, "files-percentage-bar"),
FF_FORMAT_ARG(days, "days"),
FF_FORMAT_ARG(hours, "hours"),
FF_FORMAT_ARG(minutes, "minutes"),
FF_FORMAT_ARG(seconds, "seconds"),
FF_FORMAT_ARG(milliseconds, "milliseconds"),
FF_FORMAT_ARG(disk->mountpoint, "mountpoint"),
FF_FORMAT_ARG(disk->mountFrom, "mount-from"),
FF_FORMAT_ARG(age.years, "years"),
FF_FORMAT_ARG(age.daysOfYear, "days-of-year"),
FF_FORMAT_ARG(age.yearsFraction, "years-fraction"),
FF_FORMAT_ARG(freePretty, "size-free"),
FF_FORMAT_ARG(availPretty, "size-available"),
FF_ARG(usedPretty, "size-used"),
FF_ARG(totalPretty, "size-total"),
FF_ARG(bytesPercentageNum, "size-percentage"),
FF_ARG(disk->filesUsed, "files-used"),
FF_ARG(disk->filesTotal, "files-total"),
FF_ARG(filesPercentageNum, "files-percentage"),
FF_ARG(isExternal, "is-external"),
FF_ARG(isHidden, "is-hidden"),
FF_ARG(disk->filesystem, "filesystem"),
FF_ARG(disk->name, "name"),
FF_ARG(isReadOnly, "is-readonly"),
{FF_ARG_TYPE_STRING, ffTimeToShortStr(disk->createTime), "create-time"},
FF_ARG(bytesPercentageBar, "size-percentage-bar"),
FF_ARG(filesPercentageBar, "files-percentage-bar"),
FF_ARG(days, "days"),
FF_ARG(hours, "hours"),
FF_ARG(minutes, "minutes"),
FF_ARG(seconds, "seconds"),
FF_ARG(milliseconds, "milliseconds"),
FF_ARG(disk->mountpoint, "mountpoint"),
FF_ARG(disk->mountFrom, "mount-from"),
FF_ARG(age.years, "years"),
FF_ARG(age.daysOfYear, "days-of-year"),
FF_ARG(age.yearsFraction, "years-fraction"),
FF_ARG(freePretty, "size-free"),
FF_ARG(availPretty, "size-available"),
}));
}
}