1 /* @(#) $Id: ./src/os_xml/os_xml_writer.h, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
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
14 * Available at http://www.ossec.net/
18 #ifndef OS_XML_WRITER_H
19 #define OS_XML_WRITER_H
22 #define XML_MAXSIZE 2048
23 #endif /* XML_MAXSIZE */
26 #define XML_VAR "xml_var"
30 /* Error from writer */
31 #define XMLW_ERROR 006
33 #define XMLW_NOOUT 010
37 * Write an XML file, based on the input and values to change.
39 int OS_WriteXML(char *infile, char *outfile, char **nodes, char *attr,
40 char *oldval, char *newval, int type);