From 815b63fd3a630eb462e7ab9d8af09f19e129a5af Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 9 May 2017 21:04:11 -0400 Subject: Implement -D exec --- exec.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'exec.h') diff --git a/exec.h b/exec.h index 498013a..d4a7154 100644 --- a/exec.h +++ b/exec.h @@ -15,6 +15,8 @@ #include "bftw.h" #include "color.h" +struct cmdline; + /** * Flags for the -exec actions. */ @@ -25,6 +27,8 @@ enum bfs_exec_flags { BFS_EXEC_CHDIR = 1 << 1, /** Pass multiple files at once to the command (-exec ... {} +). */ BFS_EXEC_MULTI = 1 << 2, + /** Print debugging information (-D exec). */ + BFS_EXEC_DEBUG = 1 << 3, }; /** @@ -72,11 +76,11 @@ struct bfs_exec { * The (bfs) command line argument to parse. * @param flags * Any flags for this exec action. - * @param cerr - * For error messages. + * @param cmdline + * The command line. * @return The parsed exec action, or NULL on failure. */ -struct bfs_exec *parse_bfs_exec(char **argv, enum bfs_exec_flags flags, CFILE *cerr); +struct bfs_exec *parse_bfs_exec(char **argv, enum bfs_exec_flags flags, const struct cmdline *cmdline); /** * Execute the command for a file. -- cgit v1.2.3