From 3b82c88d1950291b1b703f082df43ec1b9654eb5 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 5 Feb 2024 14:11:38 -0500 Subject: color: New API to check if stat() is necessary --- src/color.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/color.h') 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); -- cgit v1.2.3