diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-11-16 14:43:19 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-11-16 14:43:19 +0200 |
commit | 54ae271dfc5f8405233ed320b2e9bd821ee8210f (patch) | |
tree | 9b27941b0e5cc0aa5ba805e1bcb9f8d7ff965592 /src/actionhelper.h | |
parent | 97e14c73be6684259e235a92cc575ea39a04fc7e (diff) | |
download | ck-54ae271dfc5f8405233ed320b2e9bd821ee8210f.tar.gz ck-54ae271dfc5f8405233ed320b2e9bd821ee8210f.tar.bz2 ck-54ae271dfc5f8405233ed320b2e9bd821ee8210f.zip |
Code restructure/simplification, restore regression test
Diffstat (limited to 'src/actionhelper.h')
-rw-r--r-- | src/actionhelper.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/actionhelper.h b/src/actionhelper.h deleted file mode 100644 index f7da0dd..0000000 --- a/src/actionhelper.h +++ /dev/null @@ -1,68 +0,0 @@ -/* actionhelper.h - helper routines for ck actions --------------------*- C -*- - * - * This file is part of ck, the config keeper - * - * ----------------------------------------------------------------------------- - * - * Copyright (C) 2018 Anastasis Grammenos - * GPLv3 (see LICENCE for the full notice) - * - * ----------------------------------------------------------------------------- - * - * Here reside helper routines for the actions. - * - * -------------------------------------------------------------------------- */ -#ifndef ACTIONHELPER_H -#define ACTIONHELPER_H - -#include "actions.h" -#include "ckutil.h" -#include "cklist.h" -#include "dblayer.h" - -/********/ -/* INIT */ -/********/ - -int init_create_config_file(UserOpt *opt); - -/*******/ -/* ADD */ -/*******/ - -/* if add_err is set, return true - * along with a copy of the error message. - * Pass NULL if you don't care about the message */ -int add_err_message(char *err); -AddOpt add_make_options(cklist *args); -void add_print_opts(AddOpt *opt); -void add_make_link(const AddOpt *opt, const Conf *conf); - -/********/ -/* EDIT */ -/********/ -void edit_print_suggested_configs(DB *db, const char *pName); - -/********/ -/* LIST */ -/********/ -ListOpt list_make_options(cklist *args); - -/***********/ -/* RESTORE */ -/***********/ -int restore_make_links(cklist *from, cklist *to); - -/************************/ -/* PRINT RESULTS & HELP */ -/************************/ -#define X(ACTION) \ - void print_##ACTION##_result(int err); \ - void print_##ACTION##_help(void); -CK_ACTIONS -#undef X - -void print_conf_help(void); -void print_verbose_help(void); - -#endif /* ACTIONHELPER_H */ |