2 * Includes specific to the Director User Agent Server
4 * Kern Sibbald, August MMI
9 Copyright (C) 2000-2006 Kern Sibbald
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 version 2 as amended with additional clauses defined in the
14 file LICENSE in the main source directory.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 the file LICENSE for additional details.
32 CONRES *cons; /* console resource */
33 POOLMEM *cmd; /* return command/name buffer */
34 POOLMEM *args; /* command line arguments */
35 char *argk[MAX_CMD_ARGS]; /* argument keywords */
36 char *argv[MAX_CMD_ARGS]; /* argument values */
37 int argc; /* number of arguments */
38 char **prompt; /* list of prompts */
39 int max_prompts; /* max size of list */
40 int num_prompts; /* current number in list */
41 bool auto_display_messages; /* if set, display messages */
42 bool user_notified_msg_pending; /* set when user notified */
43 bool automount; /* if set, mount after label */
44 bool quit; /* if set, quit */
45 bool verbose; /* set for normal UA verbosity */
46 bool batch; /* set for non-interactive mode */
47 bool gui; /* set if talking to GUI program */
48 uint32_t pint32_val; /* positive integer */
49 int32_t int32_val; /* positive/negative */
50 int64_t int64_val; /* big int */
53 /* Context for insert_tree_handler() */
55 TREE_ROOT *root; /* root */
56 TREE_NODE *node; /* current node */
57 TREE_NODE *avail_node; /* unused node last insert */
58 int cnt; /* count for user feedback */
59 bool all; /* if set mark all as default */
61 uint32_t FileEstimate; /* estimate of number of files */
62 uint32_t FileCount; /* current count of files */
63 uint32_t LastCount; /* last count of files */
64 uint32_t DeltaCount; /* trigger for printing */
68 char **name; /* list of names */
69 int num_ids; /* ids stored */
70 int max_ids; /* size of array */
71 int num_del; /* number deleted */
72 int tot_ids; /* total to process */
76 /* Main structure for obtaining JobIds or Files to be restored */
81 char ClientName[MAX_NAME_LENGTH];
83 POOLMEM *JobIds; /* User entered string of JobIds */
88 uint32_t selected_files;
91 POOLMEM *fname; /* filename only */
92 POOLMEM *path; /* path only */
94 int fnl; /* filename length */
95 int pnl; /* path length */
97 bool all; /* mark all as default */
101 #define MAX_ID_LIST_LEN 2000000