summaryrefslogtreecommitdiffstats
path: root/color.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-09-16 12:25:53 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-09-26 12:31:18 -0400
commit309c9a29e32edc07cb06e329669be7e30f8d9ed5 (patch)
treed7e82bee613d2724f99573a1e8ab3f1ab9cebf09 /color.h
parent7a60efa76f4f79a118e06b640d7af9d51f8b539e (diff)
downloadbfs-309c9a29e32edc07cb06e329669be7e30f8d9ed5.tar.xz
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
Diffstat (limited to 'color.h')
-rw-r--r--color.h10
1 files changed, 4 insertions, 6 deletions
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.