ReactOS 0.4.16-dev-2207-geb15453
xmlIO.h File Reference
#include <stdio.h>
#include <libxml/xmlversion.h>
#include <libxml/encoding.h>
#include <libxml/tree.h>
Include dependency graph for xmlIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _xmlParserInputBuffer
 

Macros

#define XML_TREE_INTERNALS
 
#define XML_GLOBALS_IO
 
#define XML_OP   XML_DECLARE_GLOBAL
 

Typedefs

typedef int(* xmlInputMatchCallback) (char const *filename)
 
typedef void *(* xmlInputOpenCallback) (char const *filename)
 
typedef int(* xmlInputReadCallback) (void *context, char *buffer, int len)
 
typedef int(* xmlInputCloseCallback) (void *context)
 
typedef xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc) (const char *URI, xmlCharEncoding enc)
 
typedef xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc) (const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)
 

Functions

XML_GLOBALS_IO XMLPUBFUN void xmlCleanupInputCallbacks (void)
 
XMLPUBFUN int xmlPopInputCallbacks (void)
 
XMLPUBFUN void xmlRegisterDefaultInputCallbacks (void)
 
XMLPUBFUN xmlParserInputBufferPtr xmlAllocParserInputBuffer (xmlCharEncoding enc)
 
XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateFilename (const char *URI, xmlCharEncoding enc)
 
XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateFile (FILE *file, xmlCharEncoding enc)
 
XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateFd (int fd, xmlCharEncoding enc)
 
XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateMem (const char *mem, int size, xmlCharEncoding enc)
 
XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateStatic (const char *mem, int size, xmlCharEncoding enc)
 
XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateIO (xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, xmlCharEncoding enc)
 
XMLPUBFUN int xmlParserInputBufferRead (xmlParserInputBufferPtr in, int len)
 
XMLPUBFUN int xmlParserInputBufferGrow (xmlParserInputBufferPtr in, int len)
 
XMLPUBFUN int xmlParserInputBufferPush (xmlParserInputBufferPtr in, int len, const char *buf)
 
XMLPUBFUN void xmlFreeParserInputBuffer (xmlParserInputBufferPtr in)
 
XMLPUBFUN charxmlParserGetDirectory (const char *filename)
 
XMLPUBFUN int xmlRegisterInputCallbacks (xmlInputMatchCallback matchFunc, xmlInputOpenCallback openFunc, xmlInputReadCallback readFunc, xmlInputCloseCallback closeFunc)
 
xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename (const char *URI, xmlCharEncoding enc)
 
XMLPUBFUN xmlParserInputPtr xmlCheckHTTPInput (xmlParserCtxtPtr ctxt, xmlParserInputPtr ret)
 
XMLPUBFUN xmlParserInputPtr xmlNoNetExternalEntityLoader (const char *URL, const char *ID, xmlParserCtxtPtr ctxt)
 
XMLPUBFUN xmlCharxmlNormalizeWindowsPath (const xmlChar *path)
 
XMLPUBFUN int xmlCheckFilename (const char *path)
 
XMLPUBFUN int xmlFileMatch (const char *filename)
 
XMLPUBFUN voidxmlFileOpen (const char *filename)
 
XMLPUBFUN int xmlFileRead (void *context, char *buffer, int len)
 
XMLPUBFUN int xmlFileClose (void *context)
 
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func)
 
XMLPUBFUN xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func)
 
XMLPUBFUN xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func)
 
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func)
 

Macro Definition Documentation

◆ XML_GLOBALS_IO

#define XML_GLOBALS_IO
Value:
xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue
Definition: globals.c:380
xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue
Definition: globals.c:388
xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc)(const char *URI, xmlCharEncoding enc)
Definition: xmlIO.h:129
xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc)(const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)
Definition: xmlIO.h:143
#define XML_OP
Definition: xmlIO.h:183
#define XML_DEPRECATED
Definition: xmlversion.h:475

DOC_DISABLE

Definition at line 177 of file xmlIO.h.

◆ XML_OP

#define XML_OP   XML_DECLARE_GLOBAL

Definition at line 183 of file xmlIO.h.

◆ XML_TREE_INTERNALS

#define XML_TREE_INTERNALS

Definition at line 16 of file xmlIO.h.

Typedef Documentation

◆ xmlInputCloseCallback

typedef int(* xmlInputCloseCallback) (void *context)

xmlInputCloseCallback: @context: an Input context

Callback used in the I/O Input API to close the resource

Returns 0 or -1 in case of error

Definition at line 67 of file xmlIO.h.

◆ xmlInputMatchCallback

typedef int(* xmlInputMatchCallback) (char const *filename)

xmlInputMatchCallback: @filename: the filename or URI

Callback used in the I/O Input API to detect if the current handler can provide input functionality for this resource.

Returns 1 if yes and 0 if another Input module should be used

Definition at line 38 of file xmlIO.h.

◆ xmlInputOpenCallback

typedef void *(* xmlInputOpenCallback) (char const *filename)

xmlInputOpenCallback: @filename: the filename or URI

Callback used in the I/O Input API to open the resource

Returns an Input context or NULL in case or error

Definition at line 47 of file xmlIO.h.

◆ xmlInputReadCallback

typedef int(* xmlInputReadCallback) (void *context, char *buffer, int len)

xmlInputReadCallback: @context: an Input context @buffer: the buffer to store data read @len: the length of the buffer in bytes

Callback used in the I/O Input API to read the resource

Returns the number of bytes read or -1 in case of error

Definition at line 58 of file xmlIO.h.

◆ xmlOutputBufferCreateFilenameFunc

typedef xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc) (const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)

xmlOutputBufferCreateFilenameFunc: @URI: the URI to write to @enc: the requested target encoding

Signature for the function doing the lookup for a suitable output method corresponding to an URI.

Returns the new xmlOutputBufferPtr in case of success or NULL if no method was found.

Definition at line 142 of file xmlIO.h.

◆ xmlParserInputBufferCreateFilenameFunc

typedef xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc) (const char *URI, xmlCharEncoding enc)

xmlParserInputBufferCreateFilenameFunc: @URI: the URI to read from @enc: the requested source encoding

Signature for the function doing the lookup for a suitable input method corresponding to an URI.

Returns the new xmlParserInputBufferPtr in case of success or NULL if no method was found.

Definition at line 128 of file xmlIO.h.

Function Documentation

◆ __xmlParserInputBufferCreateFilename()

xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename ( const char URI,
xmlCharEncoding  enc 
)

◆ xmlAllocParserInputBuffer()

XMLPUBFUN xmlParserInputBufferPtr xmlAllocParserInputBuffer ( xmlCharEncoding  enc)

Referenced by xmlCtxtResetPush().

◆ xmlCheckFilename()

XMLPUBFUN int xmlCheckFilename ( const char path)

◆ xmlCheckHTTPInput()

XMLPUBFUN xmlParserInputPtr xmlCheckHTTPInput ( xmlParserCtxtPtr  ctxt,
xmlParserInputPtr  ret 
)

Referenced by xmlNewInputFromFile().

◆ xmlCleanupInputCallbacks()

XML_GLOBALS_IO XMLPUBFUN void xmlCleanupInputCallbacks ( void  )

DOC_ENABLE

Referenced by DllMain(), and xmlCleanupParser().

◆ xmlFileClose()

XMLPUBFUN int xmlFileClose ( void context)

◆ xmlFileMatch()

XMLPUBFUN int xmlFileMatch ( const char filename)

Default 'file://' protocol callbacks

◆ xmlFileOpen()

XMLPUBFUN void * xmlFileOpen ( const char filename)

◆ xmlFileRead()

XMLPUBFUN int xmlFileRead ( void context,
char buffer,
int  len 
)

◆ xmlFreeParserInputBuffer()

◆ xmlNoNetExternalEntityLoader()

XMLPUBFUN xmlParserInputPtr xmlNoNetExternalEntityLoader ( const char URL,
const char ID,
xmlParserCtxtPtr  ctxt 
)

◆ xmlNormalizeWindowsPath()

XMLPUBFUN xmlChar * xmlNormalizeWindowsPath ( const xmlChar path)

◆ xmlOutputBufferCreateFilenameDefault()

XMLPUBFUN xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameDefault ( xmlOutputBufferCreateFilenameFunc  func)

◆ xmlParserGetDirectory()

◆ xmlParserInputBufferCreateFd()

XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateFd ( int  fd,
xmlCharEncoding  enc 
)

Referenced by xmlCtxtReadFd(), and xmlReadFd().

◆ xmlParserInputBufferCreateFile()

XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateFile ( FILE file,
xmlCharEncoding  enc 
)

◆ xmlParserInputBufferCreateFilename()

XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateFilename ( const char URI,
xmlCharEncoding  enc 
)

Referenced by xmlNewInputFromFile().

◆ xmlParserInputBufferCreateFilenameDefault()

Default 'http://' protocol callbacks Default 'ftp://' protocol callbacks

◆ xmlParserInputBufferCreateIO()

XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateIO ( xmlInputReadCallback  ioread,
xmlInputCloseCallback  ioclose,
void ioctx,
xmlCharEncoding  enc 
)

◆ xmlParserInputBufferCreateMem()

XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateMem ( const char mem,
int  size,
xmlCharEncoding  enc 
)

◆ xmlParserInputBufferCreateStatic()

XMLPUBFUN xmlParserInputBufferPtr xmlParserInputBufferCreateStatic ( const char mem,
int  size,
xmlCharEncoding  enc 
)

Referenced by xmlCtxtReadMemory().

◆ xmlParserInputBufferGrow()

XMLPUBFUN int xmlParserInputBufferGrow ( xmlParserInputBufferPtr  in,
int  len 
)

◆ xmlParserInputBufferPush()

XMLPUBFUN int xmlParserInputBufferPush ( xmlParserInputBufferPtr  in,
int  len,
const char buf 
)

Referenced by xmlCtxtResetPush().

◆ xmlParserInputBufferRead()

XMLPUBFUN int xmlParserInputBufferRead ( xmlParserInputBufferPtr  in,
int  len 
)

Referenced by xmlParserInputShrink().

◆ xmlPopInputCallbacks()

XMLPUBFUN int xmlPopInputCallbacks ( void  )

◆ xmlRegisterDefaultInputCallbacks()

XMLPUBFUN void xmlRegisterDefaultInputCallbacks ( void  )

Referenced by DllMain(), and xmlInitParser().

◆ xmlRegisterInputCallbacks()

XMLPUBFUN int xmlRegisterInputCallbacks ( xmlInputMatchCallback  matchFunc,
xmlInputOpenCallback  openFunc,
xmlInputReadCallback  readFunc,
xmlInputCloseCallback  closeFunc 
)

Referenced by DllMain().

◆ xmlThrDefOutputBufferCreateFilenameDefault()

XMLPUBFUN xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault ( xmlOutputBufferCreateFilenameFunc  func)

Definition at line 1193 of file globals.c.

1194{
1196
1199#ifdef LIBXML_OUTPUT_ENABLED
1200 if (old == NULL) {
1201 old = __xmlOutputBufferCreateFilename;
1202 }
1203#endif
1206
1207 return(old);
1208}
#define NULL
Definition: types.h:112
GLenum func
Definition: glext.h:6028
XMLPUBFUN void xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:201
XMLPUBFUN void xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:225
static xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValueThrDef
Definition: globals.c:389
static xmlMutex xmlThrDefMutex
Definition: globals.c:94

◆ xmlThrDefParserInputBufferCreateFilenameDefault()

XMLPUBFUN xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault ( xmlParserInputBufferCreateFilenameFunc  func)

Definition at line 1176 of file globals.c.

1177{
1179
1182 if (old == NULL) {
1184 }
1185
1188
1189 return(old);
1190}
static xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValueThrDef
Definition: globals.c:381
xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename(const char *URI, xmlCharEncoding enc)