summaryrefslogtreecommitdiffstats
path: root/exec.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-05-09 21:04:11 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-05-09 21:04:11 -0400
commit815b63fd3a630eb462e7ab9d8af09f19e129a5af (patch)
tree97eed9b70784e8e11d4b9c8630b7708be8dc3da7 /exec.h
parentc8c33b8c44751444729eda6a9fb7d4715928ea43 (diff)
downloadbfs-815b63fd3a630eb462e7ab9d8af09f19e129a5af.tar.xz
Implement -D exec
Diffstat (limited to 'exec.h')
-rw-r--r--exec.h10
1 files changed, 7 insertions, 3 deletions
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.