2 * Includes specific to the Director User Agent Server
4 * Kern Sibbald, August MMI
9 Bacula® - The Network Backup Solution
11 Copyright (C) 2001-2006 Free Software Foundation Europe e.V.
13 The main author of Bacula is Kern Sibbald, with contributions from
14 many others, a complete list can be found in the file AUTHORS.
15 This program is Free Software; you can redistribute it and/or
16 modify it under the terms of version two of the GNU General Public
17 License as published by the Free Software Foundation plus additions
18 that are listed in the file LICENSE.
20 This program is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, write to the Free Software
27 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
30 Bacula® is a registered trademark of John Walker.
31 The licensor of Bacula is the Free Software Foundation Europe
32 (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
33 Switzerland, email:ftf@fsfeurope.org.
45 CONRES *cons; /* console resource */
46 POOLMEM *cmd; /* return command/name buffer */
47 POOLMEM *args; /* command line arguments */
48 char *argk[MAX_CMD_ARGS]; /* argument keywords */
49 char *argv[MAX_CMD_ARGS]; /* argument values */
50 int argc; /* number of arguments */
51 char **prompt; /* list of prompts */
52 int max_prompts; /* max size of list */
53 int num_prompts; /* current number in list */
54 bool auto_display_messages; /* if set, display messages */
55 bool user_notified_msg_pending; /* set when user notified */
56 bool automount; /* if set, mount after label */
57 bool quit; /* if set, quit */
58 bool verbose; /* set for normal UA verbosity */
59 bool batch; /* set for non-interactive mode */
60 bool gui; /* set if talking to GUI program */
61 uint32_t pint32_val; /* positive integer */
62 int32_t int32_val; /* positive/negative */
63 int64_t int64_val; /* big int */
66 /* Context for insert_tree_handler() */
68 TREE_ROOT *root; /* root */
69 TREE_NODE *node; /* current node */
70 TREE_NODE *avail_node; /* unused node last insert */
71 int cnt; /* count for user feedback */
72 bool all; /* if set mark all as default */
74 uint32_t FileEstimate; /* estimate of number of files */
75 uint32_t FileCount; /* current count of files */
76 uint32_t LastCount; /* last count of files */
77 uint32_t DeltaCount; /* trigger for printing */
81 char **name; /* list of names */
82 int num_ids; /* ids stored */
83 int max_ids; /* size of array */
84 int num_del; /* number deleted */
85 int tot_ids; /* total to process */
89 /* Main structure for obtaining JobIds or Files to be restored */
94 char ClientName[MAX_NAME_LENGTH];
96 POOLMEM *JobIds; /* User entered string of JobIds */
101 uint32_t selected_files;
104 POOLMEM *fname; /* filename only */
105 POOLMEM *path; /* path only */
107 int fnl; /* filename length */
108 int pnl; /* path length */
110 bool all; /* mark all as default */
114 #define MAX_ID_LIST_LEN 2000000