libifupdown: execute: add lif_maybe_try_executor()
This commit is contained in:
parent
4a5a37a620
commit
96112d5dc9
3 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue