refactoring locking, make it per-interface to avoid deadlocks

This commit is contained in:
Ariadne Conill 2020-07-29 03:10:55 -06:00
parent 91115edeee
commit 0ca8e42ee6
2 changed files with 72 additions and 63 deletions

View file

@ -22,8 +22,10 @@
struct lif_execute_opts {
bool verbose;
bool mock;
bool no_lock;
const char *executor_path;
const char *interfaces_file;
const char *state_file;
};
extern bool lif_execute_fmt(const struct lif_execute_opts *opts, char *const envp[], const char *fmt, ...);