From 54ae271dfc5f8405233ed320b2e9bd821ee8210f Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 16 Nov 2018 14:43:19 +0200 Subject: Code restructure/simplification, restore regression test --- src/actions.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/actions.h') diff --git a/src/actions.h b/src/actions.h index d261cc6..2015538 100644 --- a/src/actions.h +++ b/src/actions.h @@ -67,4 +67,29 @@ struct ListOptions { int err; }; +/* init.c */ +int init_create_config_file(UserOpt *opt); + +/* add.c */ +AddOpt add_make_options(cklist *args); +void add_print_opts(AddOpt *opt); +int add_make_link(const AddOpt *opt, const Conf *conf); + +/* list.c */ +ListOpt list_make_options(cklist *args); + +/* restore.c */ +int restore_make_links(cklist *from, cklist *to); + +/************************/ +/* PRINT RESULTS & HELP */ +/************************/ +#define X(ACTION) \ + void print_##ACTION##_help(void); +CK_ACTIONS +#undef X + +void print_conf_help(void); +void print_verbose_help(void); + #endif /* ACTIONS_H */ -- cgit v1.2.3