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;
43 struct client_script_result_s *result;
46 typedef GSList *scriptlist_t;
48 typedef struct level_s {
50 int server; /* if server can do the estimate */
52 typedef GSList *levellist_t; /* A list where each element is a (level_t *) */
54 typedef struct a_dle_s {
57 int program_is_application_api;
59 estimatelist_t estimatelist;
64 levellist_t levellist;
70 char *srv_decrypt_opt;
71 char *clnt_decrypt_opt;
81 proplist_t application_property;
82 scriptlist_t scriptlist;
83 data_path_t data_path;
84 GSList *directtcp_list;
88 dle_t *alloc_dle(void);
89 void init_dle(dle_t *dle);
90 dle_t *amxml_parse_node_CHAR(char *txt, char **errmsg);
91 dle_t *amxml_parse_node_FILE(FILE *file, char **errmsg);
92 char *amxml_format_tag(char *tag, char *value);