libifupdown: execute: add lif_maybe_try_executor()

This commit is contained in:
Ariadne Conill 2020-07-25 02:16:51 -06:00
parent 4a5a37a620
commit 96112d5dc9
3 changed files with 21 additions and 1 deletions

View file

@ -22,9 +22,11 @@
struct lif_execute_opts {
bool verbose;
bool mock;
const char *executor_path;
};
extern bool lif_execute_fmt(const struct lif_execute_opts *opts, char *const envp[], const char *fmt, ...);
extern bool lif_file_is_executable(const char *path);
extern bool lif_maybe_run_executor(const struct lif_execute_opts *opts, char *const envp[], const char *executor);
#endif