]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/dird/ua.h
Misc see kes-1.31 13May03
[bacula/bacula] / bacula / src / dird / ua.h
1 /*
2  * Includes specific to the Director User Agent Server
3  *
4  *     Kern Sibbald, August MMI
5  *
6  *     Version $Id$
7  */
8 /*
9    Copyright (C) 2000-2003 Kern Sibbald and John Walker
10
11    This program is free software; you can redistribute it and/or
12    modify it under the terms of the GNU General Public License as
13    published by the Free Software Foundation; either version 2 of
14    the License, or (at your option) any later version.
15
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 GNU
19    General Public License for more details.
20
21    You should have received a copy of the GNU General Public
22    License along with this program; if not, write to the Free
23    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
24    MA 02111-1307, USA.
25
26  */
27
28 #ifndef __UA_H_
29 #define __UA_H_ 1
30
31
32 typedef struct s_ua_context {
33    BSOCK *UA_sock;
34    BSOCK *sd;
35    JCR *jcr;
36    B_DB *db;
37    CAT *catalog;
38    POOLMEM *cmd;                      /* return command/name buffer */
39    POOLMEM *args;                     /* command line arguments */
40    char *argk[MAX_CMD_ARGS];          /* argument keywords */
41    char *argv[MAX_CMD_ARGS];          /* argument values */
42    int argc;                          /* number of arguments */
43    char **prompt;                     /* list of prompts */
44    int max_prompts;                   /* max size of list */
45    int num_prompts;                   /* current number in list */
46    int auto_display_messages;         /* if set, display messages */
47    int user_notified_msg_pending;     /* set when user notified */
48    int automount;                     /* if set, mount after label */
49    int quit;                          /* if set, quit */
50    int verbose;                       /* set for normal UA verbosity */
51    uint32_t pint32_val;               /* positive integer */
52    int32_t  int32_val;                /* positive/negative */
53 } UAContext;
54
55 #endif