Git init
[external/xmlsec1.git] / include / xmlsec / parser.h
1 /** 
2  * XML Security Library (http://www.aleksey.com/xmlsec).
3  *
4  * XML Parser transform and utility functions.
5  *
6  * This is free software; see Copyright file in the source
7  * distribution for preciese wording.
8  * 
9  * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com>
10  */
11 #ifndef __XMLSEC_PARSER_H__
12 #define __XMLSEC_PARSER_H__    
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* __cplusplus */ 
17
18 #include <libxml/tree.h>
19
20 #include <xmlsec/xmlsec.h>
21 #include <xmlsec/transforms.h>
22
23
24 XMLSEC_EXPORT xmlDocPtr         xmlSecParseFile         (const char *filename);
25 XMLSEC_EXPORT xmlDocPtr         xmlSecParseMemory       (const xmlSecByte *buffer, 
26                                                          xmlSecSize size,
27                                                          int recovery);
28 XMLSEC_EXPORT xmlDocPtr         xmlSecParseMemoryExt    (const xmlSecByte *prefix, 
29                                                          xmlSecSize prefixSize,
30                                                          const xmlSecByte *buffer, 
31                                                          xmlSecSize bufferSize, 
32                                                          const xmlSecByte *postfix, 
33                                                          xmlSecSize postfixSize);
34
35
36 /**
37  * xmlSecTransformXmlParserId:
38  * 
39  * The XML Parser transform klass.
40  */
41 #define xmlSecTransformXmlParserId \
42         xmlSecTransformXmlParserGetKlass()
43 XMLSEC_EXPORT xmlSecTransformId xmlSecTransformXmlParserGetKlass        (void);
44
45
46 #ifdef __cplusplus
47 }
48 #endif /* __cplusplus */
49
50 #endif /* __XMLSEC_PARSER_H__ */
51