From b65bf20fab741102d628701f22e88a4a1f62c522 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 10 Aug 2002 11:02:38 +0000 Subject: [PATCH] Documentation + add mark/unmark cmds git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@84 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/ua_restore.c | 23 +++++++++++------------ bacula/src/version.h | 4 ++-- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index 252688bf83..2403a8bd0c 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -427,31 +427,30 @@ static int last_full_handler(void *ctx, int num_fields, char **row) /* Forward referenced commands */ -static int addcmd(UAContext *ua, TREE_CTX *tree); +static int markcmd(UAContext *ua, TREE_CTX *tree); static int countcmd(UAContext *ua, TREE_CTX *tree); static int findcmd(UAContext *ua, TREE_CTX *tree); static int lscmd(UAContext *ua, TREE_CTX *tree); static int helpcmd(UAContext *ua, TREE_CTX *tree); static int cdcmd(UAContext *ua, TREE_CTX *tree); static int pwdcmd(UAContext *ua, TREE_CTX *tree); -static int rmcmd(UAContext *ua, TREE_CTX *tree); +static int unmarkcmd(UAContext *ua, TREE_CTX *tree); static int quitcmd(UAContext *ua, TREE_CTX *tree); struct cmdstruct { char *key; int (*func)(UAContext *ua, TREE_CTX *tree); char *help; }; static struct cmdstruct commands[] = { - { N_("add"), addcmd, _("add file")}, - { N_("count"), countcmd, _("count files")}, - { N_("find"), findcmd, _("find files")}, + { N_("mark"), markcmd, _("mark file for extraction")}, + { N_("unmark"), unmarkcmd, _("unmark file for extraction")}, + { N_("cd"), cdcmd, _("change current directory")}, + { N_("pwd"), pwdcmd, _("print current working directory")}, { N_("ls"), lscmd, _("list current directory")}, { N_("dir"), lscmd, _("list current directory")}, - { N_("help"), helpcmd, _("print help")}, - { N_("cd"), cdcmd, _("change directory")}, - { N_("pwd"), pwdcmd, _("print directory")}, - { N_("rm"), rmcmd, _("remove a file")}, - { N_("remove"), rmcmd, _("remove a file")}, + { N_("count"), countcmd, _("count marked files")}, + { N_("find"), findcmd, _("find files")}, { N_("done"), quitcmd, _("leave file selection mode")}, { N_("exit"), quitcmd, _("exit = done")}, + { N_("help"), helpcmd, _("print help")}, { N_("?"), helpcmd, _("print help")}, }; #define comsize (sizeof(commands)/sizeof(struct cmdstruct)) @@ -803,7 +802,7 @@ static void set_extract(TREE_NODE *node, int value) } } -static int addcmd(UAContext *ua, TREE_CTX *tree) +static int markcmd(UAContext *ua, TREE_CTX *tree) { TREE_NODE *node; @@ -916,7 +915,7 @@ static int pwdcmd(UAContext *ua, TREE_CTX *tree) } -static int rmcmd(UAContext *ua, TREE_CTX *tree) +static int unmarkcmd(UAContext *ua, TREE_CTX *tree) { TREE_NODE *node; diff --git a/bacula/src/version.h b/bacula/src/version.h index fba7113f22..bbd06d464c 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -1,8 +1,8 @@ /* */ #define VERSION "1.24" #define VSTRING "1" -#define DATE "08 August 2002" -#define LSMDATE "08Aug02" +#define DATE "10 August 2002" +#define LSMDATE "10Aug02" /* Debug flags */ #define DEBUG 1 -- 2.39.5