diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-02-05 14:11:38 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-02-06 15:22:39 -0500 |
commit | 3b82c88d1950291b1b703f082df43ec1b9654eb5 (patch) | |
tree | a438d7bf0a0c969265fdb7a71bf711c98b7f77d0 /src/color.h | |
parent | 89ecb2a08467cd8aa6ba70f8519df494652cac96 (diff) | |
download | bfs-3b82c88d1950291b1b703f082df43ec1b9654eb5.tar.xz |
color: New API to check if stat() is necessary
Diffstat (limited to 'src/color.h')
-rw-r--r-- | src/color.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/color.h b/src/color.h index 760aa9d..85633a4 100644 --- a/src/color.h +++ b/src/color.h @@ -19,17 +19,17 @@ struct colors; /** - * Parse a color table. - * - * @return The parsed color table. + * Parse the color table from the environment. */ struct colors *parse_colors(void); /** + * Check if stat() info is required to color a file correctly. + */ +bool colors_need_stat(const struct colors *colors); + +/** * Free a color table. - * - * @param colors - * The color table to free. */ void free_colors(struct colors *colors); |