sml_xml_parse.h
/*
* libsyncml - A syncml protocol implementation
* Copyright (C) 2005 Armin Bauer <armin.bauer@opensync.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _SML_XML_PARSE_H_
#define _SML_XML_PARSE_H_
typedef struct SmlXmlParser SmlXmlParser;
SmlXmlParser *smlXmlParserNew(SmlParserFunctions *functions, SmlError **error);
SmlBool smlXmlParserStart(SmlXmlParser *parser, const char *data, unsigned int size, SmlError **error);
SmlBool smlXmlParserEnd(SmlXmlParser *parser, SmlBool *final, SmlBool *end, SmlError **error);
void smlXmlParserFree(SmlXmlParser *parser);
SmlBool smlXmlParserGetHeader(SmlXmlParser *parser, SmlHeader **header, SmlCred **cred, SmlError **error);
SmlBool smlXmlParserGetStatus(SmlXmlParser *parser, SmlStatus **status, SmlError **error);
SmlParserResult smlXmlParserGetCommand(SmlXmlParser *parser, SmlCommand **cmd, SmlError **error);
SmlDevInf *smlXmlDevInfParse(const char *data, unsigned int size, SmlError **error);
#endif //_SML_XML_PARSE_H_
smlXmlParserStart
SmlBool smlXmlParserStart(SmlXmlParser *parser, const char *data, unsigned int size, SmlError **error)
Start the parsing.
Definition: sml_xml_parse.c:1915
SmlCred
Definition: sml_elements_internals.h:87
SmlStatus
Definition: sml_command_internals.h:94
SmlXmlParser
Definition: sml_xml_parse_internals.h:47
SmlHeader
Definition: sml_elements_internals.h:73
SmlCommand
Definition: sml_command_internals.h:73
SmlDevInf
Definition: sml_devinf_internals.h:33
SmlParserFunctions
Definition: sml_parse.h:41
SmlError
Represent an error.
Definition: sml_error_internals.h:29