2 * Amanda, The Advanced Maryland Automatic Network Disk Archiver
3 * Copyright (c) 1991-1998 University of Maryland at College Park
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of U.M. not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. U.M. makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
16 * U.M. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL U.M.
18 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 * Authors: the Amanda Development Team. Its members are listed in a
24 * file named AUTHORS, in the root directory of this distribution.
28 * $Id: amxml.h 5151 2007-02-06 15:41:53Z martineau $
30 * xml parsing of amanda protocol packet
38 typedef struct script_s {
40 execute_on_t execute_on;
44 struct client_script_result_s *result;
47 typedef GSList *scriptlist_t;
49 typedef struct level_s {
51 int server; /* if server can do the estimate */
53 typedef GSList *levellist_t; /* A list where each element is a (level_t *) */
55 typedef struct a_dle_s {
58 int program_is_application_api;
60 estimatelist_t estimatelist;
65 levellist_t levellist;
71 char *srv_decrypt_opt;
72 char *clnt_decrypt_opt;
82 proplist_t application_property;
83 char *application_client_name;
84 scriptlist_t scriptlist;
85 data_path_t data_path;
86 GSList *directtcp_list;
90 dle_t *alloc_dle(void);
91 void init_dle(dle_t *dle);
92 void free_dle(dle_t *dle);
93 void free_script_data(script_t *script);
94 dle_t *amxml_parse_node_CHAR(char *txt, char **errmsg);
95 dle_t *amxml_parse_node_FILE(FILE *file, char **errmsg);
96 char *amxml_format_tag(char *tag, char *value);