Imported Upstream version 2.7
[ossec-hids.git] / src / os_xml / os_xml_writer.h
1 /* @(#) $Id: ./src/os_xml/os_xml_writer.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All rights reserved.
6  *
7  * This program is a free software; you can redistribute it
8  * and/or modify it under the terms of the GNU General Public
9  * License (version 2) as published by the FSF - Free Software
10  * Foundation
11  */
12
13 /* os_xml C Library.
14  * Available at http://www.ossec.net/
15  */
16
17
18 #ifndef OS_XML_WRITER_H
19 #define OS_XML_WRITER_H
20
21 #ifndef XML_MAXSIZE
22    #define XML_MAXSIZE          2048
23 #endif /* XML_MAXSIZE */
24
25 #ifndef XML_VAR
26    #define XML_VAR              "xml_var"
27 #endif /* XML_VAR */
28
29
30 /* Error from writer */
31 #define XMLW_ERROR              006
32 #define XMLW_NOIN               007
33 #define XMLW_NOOUT              010
34
35
36 /* OS_WriteXML
37  * Write an XML file, based on the input and values to change.
38  */
39 int OS_WriteXML(char *infile, char *outfile, char **nodes, char *attr,
40                 char *oldval, char *newval,  int type);
41
42
43 #endif
44
45 /* EOF */