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