1 /** 2 *** Additional delarations for ILE/RPG support. 3 *** 4 *** See Copyright for the status of this software. 5 *** 6 *** Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A. 7 **/ 8 9 #ifndef __RPGSUPPORT_H__ 10 #define __RPGSUPPORT_H__ 11 12 #include <sys/types.h> 13 14 #include <libxml/xmlmemory.h> 15 #include <libxml/xpath.h> 16 #include "libxml/HTMLparser.h" 17 18 19 XMLPUBFUN xmlFreeFunc __get_xmlFree(void); 20 XMLPUBFUN void __set_xmlFree(xmlFreeFunc freefunc); 21 XMLPUBFUN void __call_xmlFree(void * mem); 22 XMLPUBFUN xmlMallocFunc __get_xmlMalloc(void); 23 XMLPUBFUN void __set_xmlMalloc(xmlMallocFunc allocfunc); 24 XMLPUBFUN void * __call_xmlMalloc(size_t size); 25 XMLPUBFUN xmlMallocFunc __get_xmlMallocAtomic(void); 26 XMLPUBFUN void __set_xmlMallocAtomic(xmlMallocFunc allocfunc); 27 XMLPUBFUN void * __call_xmlMallocAtomic(size_t size); 28 XMLPUBFUN xmlReallocFunc __get_xmlRealloc(void); 29 XMLPUBFUN void __set_xmlRealloc(xmlReallocFunc reallocfunc); 30 XMLPUBFUN void * __call_xmlRealloc(void * mem, size_t size); 31 XMLPUBFUN xmlStrdupFunc __get_xmlMemStrdup(void); 32 XMLPUBFUN void __set_xmlMemStrdup(xmlStrdupFunc strdupfunc); 33 XMLPUBFUN char * __call_xmlMemStrdup(const char * str); 34 35 #ifdef LIBXML_DOCB_ENABLED 36 XMLPUBFUN xmlSAXHandlerV1 __get_docbDefaultSAXHandler(void); 37 XMLPUBFUN void __set_docbDefaultSAXHandler(xmlSAXHandlerV1 hdlr); 38 #endif 39 40 #ifdef LIBXML_HTML_ENABLED 41 XMLPUBFUN xmlSAXHandlerV1 __get_htmlDefaultSAXHandler(void); 42 XMLPUBFUN void __set_htmlDefaultSAXHandler(xmlSAXHandlerV1 hdlr); 43 #endif 44 45 XMLPUBFUN xmlError __get_xmlLastError(void); 46 XMLPUBFUN void __set_xmlLastError(xmlError err); 47 48 XMLPUBFUN int __get_oldXMLWDcompatibility(void); 49 XMLPUBFUN void __set_oldXMLWDcompatibility(int val); 50 51 XMLPUBFUN xmlBufferAllocationScheme __get_xmlBufferAllocScheme(void); 52 XMLPUBFUN void __set_xmlBufferAllocScheme(xmlBufferAllocationScheme val); 53 54 XMLPUBFUN int __get_xmlDefaultBufferSize(void); 55 XMLPUBFUN void __set_xmlDefaultBufferSize(int val); 56 57 XMLPUBFUN xmlSAXHandlerV1 __get_xmlDefaultSAXHandler(void); 58 XMLPUBFUN void __set_xmlDefaultSAXHandler(xmlSAXHandlerV1 val); 59 60 XMLPUBFUN xmlSAXLocator __get_xmlDefaultSAXLocator(void); 61 XMLPUBFUN void __set_xmlDefaultSAXLocator(xmlSAXLocator val); 62 63 XMLPUBFUN int __get_xmlDoValidityCheckingDefaultValue(void); 64 XMLPUBFUN void __set_xmlDoValidityCheckingDefaultValue(int val); 65 66 XMLPUBFUN xmlGenericErrorFunc __get_xmlGenericError(void); 67 XMLPUBFUN void __set_xmlGenericError(xmlGenericErrorFunc val); 68 69 XMLPUBFUN xmlStructuredErrorFunc __get_xmlStructuredError(void); 70 XMLPUBFUN void __set_xmlStructuredError(xmlStructuredErrorFunc val); 71 XMLPUBFUN void __call_xmlStructuredError(void *userData, xmlErrorPtr error); 72 73 XMLPUBFUN void * __get_xmlGenericErrorContext(void); 74 XMLPUBFUN void __set_xmlGenericErrorContext(void * val); 75 76 XMLPUBFUN void * __get_xmlStructuredErrorContext(void); 77 XMLPUBFUN void __set_xmlStructuredErrorContext(void * val); 78 79 XMLPUBFUN int __get_xmlGetWarningsDefaultValue(void); 80 XMLPUBFUN void __set_xmlGetWarningsDefaultValue(int val); 81 82 XMLPUBFUN int __get_xmlIndentTreeOutput(void); 83 XMLPUBFUN void __set_xmlIndentTreeOutput(int val); 84 85 XMLPUBFUN const char * __get_xmlTreeIndentString(void); 86 XMLPUBFUN void __set_xmlTreeIndentString(const char * val); 87 88 XMLPUBFUN int __get_xmlKeepBlanksDefaultValue(void); 89 XMLPUBFUN void __set_xmlKeepBlanksDefaultValue(int val); 90 91 XMLPUBFUN int __get_xmlLineNumbersDefaultValue(void); 92 XMLPUBFUN void __set_xmlLineNumbersDefaultValue(int val); 93 94 XMLPUBFUN int __get_xmlLoadExtDtdDefaultValue(void); 95 XMLPUBFUN void __set_xmlLoadExtDtdDefaultValue(int val); 96 97 XMLPUBFUN int __get_xmlParserDebugEntities(void); 98 XMLPUBFUN void __set_xmlParserDebugEntities(int val); 99 100 XMLPUBFUN const char * __get_xmlParserVersion(void); 101 XMLPUBFUN void __set_xmlParserVersion(const char * val); 102 103 XMLPUBFUN int __get_xmlPedanticParserDefaultValue(void); 104 XMLPUBFUN void __set_xmlPedanticParserDefaultValue(int val); 105 106 XMLPUBFUN int __get_xmlSaveNoEmptyTags(void); 107 XMLPUBFUN void __set_xmlSaveNoEmptyTags(int val); 108 109 XMLPUBFUN int __get_xmlSubstituteEntitiesDefaultValue(void); 110 XMLPUBFUN void __set_xmlSubstituteEntitiesDefaultValue(int val); 111 112 XMLPUBFUN xmlRegisterNodeFunc __get_xmlRegisterNodeDefaultValue(void); 113 XMLPUBFUN void __set_xmlRegisterNodeDefaultValue(xmlRegisterNodeFunc val); 114 XMLPUBFUN void __call_xmlRegisterNodeDefaultValue(xmlNodePtr node); 115 116 XMLPUBFUN xmlDeregisterNodeFunc __get_xmlDeregisterNodeDefaultValue(void); 117 XMLPUBFUN void __set_xmlDeregisterNodeDefaultValue(xmlDeregisterNodeFunc val); 118 XMLPUBFUN void __call_xmlDeregisterNodeDefaultValue(xmlNodePtr node); 119 120 XMLPUBFUN xmlParserInputBufferCreateFilenameFunc 121 __get_xmlParserInputBufferCreateFilenameValue(void); 122 XMLPUBFUN void __set_xmlParserInputBufferCreateFilenameValue( 123 xmlParserInputBufferCreateFilenameFunc val); 124 XMLPUBFUN xmlParserInputBufferPtr 125 __call_xmlParserInputBufferCreateFilenameValue(const char *URI, 126 xmlCharEncoding enc); 127 128 XMLPUBFUN xmlOutputBufferCreateFilenameFunc 129 __get_xmlOutputBufferCreateFilenameValue(void); 130 XMLPUBFUN void __set_xmlOutputBufferCreateFilenameValue( 131 xmlOutputBufferCreateFilenameFunc val); 132 XMLPUBFUN xmlOutputBufferPtr 133 __call_xmlOutputBufferCreateFilenameValue(const char *URI, 134 xmlCharEncodingHandlerPtr encoder, 135 int compression); 136 137 138 XMLPUBFUN void __xmlVaStart(char * * list, 139 char * lastargaddr, size_t lastargsize); 140 XMLPUBFUN void * __xmlVaArg(char * * list, void * dest, size_t argsize); 141 XMLPUBFUN void __xmlVaEnd(char * * list); 142 143 #ifdef LIBXML_XPATH_ENABLED 144 XMLPUBFUN int __xmlXPathNodeSetGetLength(xmlNodeSetPtr ns); 145 XMLPUBFUN xmlNodePtr __xmlXPathNodeSetItem(xmlNodeSetPtr ns, int index); 146 XMLPUBFUN int __xmlXPathNodeSetIsEmpty(xmlNodeSetPtr ns); 147 #endif 148 149 #ifdef LIBXML_HTML_ENABLED 150 XMLPUBFUN const char * __htmlDefaultSubelement(const htmlElemDesc * elt); 151 XMLPUBFUN int __htmlElementAllowedHereDesc(const htmlElemDesc * parent, 152 const htmlElemDesc * elt); 153 XMLPUBFUN const char * * 154 __htmlRequiredAttrs(const htmlElemDesc * elt); 155 #endif 156 157 #endif 158