xref: /aosp_15_r20/external/libxml2/include/libxml/globals.h (revision 7c5688314b92172186c154356a6374bf7684c3ca)
1 /*
2  * Summary: interface for all global variables of the library
3  * Description: Deprecated, don't use
4  *
5  * Copy: See Copyright for the status of this software.
6  */
7 
8 #ifndef __XML_GLOBALS_H
9 #define __XML_GLOBALS_H
10 
11 #include <libxml/xmlversion.h>
12 
13 /*
14  * This file was required to access global variables until version v2.12.0.
15  *
16  * These includes are for backward compatibility.
17  */
18 #include <libxml/HTMLparser.h>
19 #include <libxml/parser.h>
20 #include <libxml/xmlerror.h>
21 #include <libxml/xmlIO.h>
22 #include <libxml/xmlsave.h>
23 #include <libxml/threads.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 typedef struct _xmlGlobalState xmlGlobalState;
30 typedef xmlGlobalState *xmlGlobalStatePtr;
31 
32 XML_DEPRECATED XMLPUBFUN void
33 xmlInitializeGlobalState(xmlGlobalStatePtr gs);
34 XML_DEPRECATED XMLPUBFUN
35 xmlGlobalStatePtr xmlGetGlobalState(void);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif /* __XML_GLOBALS_H */
42