]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua.h
Add new files
[bacula/bacula] / bacula / src / dird / ua.h
index b7d33892f55ae24246f41110bddfea845e63f5eb..d63e949f90ade1c64a1ef9ecd917755ff853b71c 100644 (file)
 #define __UA_H_ 1
 
 
-typedef struct s_ua_context {
+struct UAContext {
    BSOCK *UA_sock;
    BSOCK *sd;
    JCR *jcr;
    B_DB *db;
    CAT *catalog;
-   POOLMEM *cmd;                      /* return command/name buffer */
-   POOLMEM *args;                     /* command line arguments */
-   char *argk[MAX_CMD_ARGS];          /* argument keywords */
-   char *argv[MAX_CMD_ARGS];          /* argument values */
-   int argc;                          /* number of arguments */
-   char **prompt;                     /* list of prompts */
-   int max_prompts;                   /* max size of list */
-   int num_prompts;                   /* current number in list */
-   int auto_display_messages;         /* if set, display messages */
+   POOLMEM *cmd;                     /* return command/name buffer */
+   POOLMEM *args;                    /* command line arguments */
+   char *argk[MAX_CMD_ARGS];         /* argument keywords */
+   char *argv[MAX_CMD_ARGS];         /* argument values */
+   int argc;                         /* number of arguments */
+   char **prompt;                    /* list of prompts */
+   int max_prompts;                  /* max size of list */
+   int num_prompts;                  /* current number in list */
+   int auto_display_messages;        /* if set, display messages */
    int user_notified_msg_pending;     /* set when user notified */
-   int automount;                     /* if set, mount after label */
-   int quit;                          /* if set, quit */
-   int verbose;                       /* set for normal UA verbosity */
-} UAContext;
+   int automount;                    /* if set, mount after label */
+   int quit;                         /* if set, quit */
+   int verbose;                      /* set for normal UA verbosity */
+   uint32_t pint32_val;              /* positive integer */
+   int32_t  int32_val;               /* positive/negative */
+};         
+
+/* Context for insert_tree_handler() */
+struct TREE_CTX {
+   TREE_ROOT *root;                  /* root */
+   TREE_NODE *node;                  /* current node */
+   TREE_NODE *avail_node;            /* unused node last insert */
+   int cnt;                          /* count for user feedback */
+   UAContext *ua;
+};
+
 
 #endif