From 309c9a29e32edc07cb06e329669be7e30f8d9ed5 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 16 Sep 2015 12:25:53 -0400 Subject: bftw() interface improvements: - Use enums instead of ints where it makes sense - Move the file path inside struct BFTW - Expose a fd and relative path for *at() calls --- color.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'color.h') diff --git a/color.h b/color.h index 25523de..e8d984c 100644 --- a/color.h +++ b/color.h @@ -33,24 +33,22 @@ color_table *parse_colors(char *ls_colors); * * @param colors * The color table to use. - * @param fpath - * The file path to print. * @param ftwbuf - * The bftw() data for fpath. + * The bftw() data for the current path. */ -void pretty_print(const color_table *colors, const char *fpath, const struct BFTW *ftwbuf); +void pretty_print(const color_table *colors, const struct BFTW *ftwbuf); /** * Pretty-print an error. * * @param colors * The color table to use. - * @param fpath + * @param path * The file path in error. * @param error * The error code that occurred. */ -void print_error(const color_table *colors, const char *fpath, int error); +void print_error(const color_table *colors, const char *path, int error); /** * Free a color table. -- cgit v1.2.3