00001 /* 00002 * WBXML Lib, the WBXML Library. 00003 * Copyright (C) 2002-2003 Aymerick Jéhanne 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License (version 2.1) as published by the Free Software Foundation. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 * 00018 * LGPL v2.1: http://www.gnu.org/licenses/lgpl.txt 00019 * 00020 * Author Contact: libwbxml@jehanne.org 00021 * WBXML Lib home: http://libwbxml.jehanne.org 00022 */ 00023 00034 #ifndef WBXML_CONV_H 00035 #define WBXML_CONV_H 00036 00037 00038 #ifdef __cplusplus 00039 extern "C" { 00040 #endif /* __cplusplus */ 00041 00047 typedef struct WBXMLConvWBXML2XMLParams_s { 00048 WBXMLEncoderXMLGenType gen_type; 00049 WBXMLLanguage lang; 00050 WB_UTINY indent; 00051 WB_BOOL keep_ignorable_ws; 00052 } WBXMLConvWBXML2XMLParams; 00053 00055 typedef struct WBXMLConvXML2WBXMLParams_s { 00056 WBXMLVersion wbxml_version; 00057 WB_BOOL keep_ignorable_ws; 00058 WB_BOOL use_strtbl; 00059 } WBXMLConvXML2WBXMLParams; 00060 00061 00070 WBXML_DECLARE(WBXMLError) wbxml_conv_wbxml2xml(WB_UTINY *wbxml, WB_ULONG wbxml_len, WB_UTINY **xml, WBXMLConvWBXML2XMLParams *params); 00071 00080 WBXML_DECLARE(WBXMLError) wbxml_conv_xml2wbxml(WB_UTINY *xml, WB_UTINY **wbxml, WB_ULONG *wbxml_len, WBXMLConvXML2WBXMLParams *params); 00081 00084 #ifdef __cplusplus 00085 } 00086 #endif /* __cplusplus */ 00087 00088 #endif /* WBXML_CONV_H */