multicall: move match_options to a common include

This commit is contained in:
Ariadne Conill 2020-08-11 22:12:37 -06:00
parent b481db6c20
commit b817bdb999
3 changed files with 9 additions and 15 deletions

View file

@ -186,15 +186,6 @@ ifquery_usage(int status)
exit(status);
}
struct match_options {
bool is_auto;
char *exclude_pattern;
char *include_pattern;
bool pretty_print;
bool dot;
char *property;
};
void
list_interfaces(struct lif_dict *collection, struct match_options *opts)
{

View file

@ -24,12 +24,6 @@
#include "libifupdown/libifupdown.h"
#include "cmd/multicall.h"
struct match_options {
bool is_auto;
char *exclude_pattern;
char *include_pattern;
};
static bool up;
static struct lif_execute_opts exec_opts = {
.executor_path = EXECUTOR_PATH,

View file

@ -49,4 +49,13 @@ struct if_applet {
extern char *argv0;
extern struct if_option_group global_option_group;
struct match_options {
bool is_auto;
char *exclude_pattern;
char *include_pattern;
bool pretty_print;
bool dot;
char *property;
};
#endif