1 /* @(#) $Id: os_xml_writer.h,v 1.4 2009/06/24 17:06:32 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
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 3) as published by the FSF - Free Software
13 * Available at http://www.ossec.net/
17 #ifndef OS_XML_WRITER_H
18 #define OS_XML_WRITER_H
21 #define XML_MAXSIZE 2048
22 #endif /* XML_MAXSIZE */
25 #define XML_VAR "xml_var"
29 /* Error from writer */
30 #define XMLW_ERROR 006
32 #define XMLW_NOOUT 010
36 * Write an XML file, based on the input and values to change.
38 int OS_WriteXML(char *infile, char *outfile, char **nodes, char *attr,
39 char *oldval, char *newval, int type);