ReactOS  0.4.14-dev-608-gd495a4f
xmlIO.h File Reference
#include <stdio.h>
#include <libxml/xmlversion.h>
#include <libxml/globals.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/encoding.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
 

Typedefs

typedef int(XMLCALLxmlInputMatchCallback) (char const *filename)
 
typedef void *(XMLCALLxmlInputOpenCallback) (char const *filename)
 
typedef int(XMLCALLxmlInputReadCallback) (void *context, char *buffer, int len)
 
typedef int(XMLCALLxmlInputCloseCallback) (void *context)
 

Functions

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

Typedef Documentation

◆ xmlInputCloseCallback

typedef int(XMLCALL * 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 63 of file xmlIO.h.

◆ xmlInputMatchCallback

typedef int(XMLCALL * 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 fonctionnalities for this resource.

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

Definition at line 34 of file xmlIO.h.

◆ xmlInputOpenCallback

typedef void*(XMLCALL * 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 43 of file xmlIO.h.

◆ xmlInputReadCallback

typedef int(XMLCALL * 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 54 of file xmlIO.h.

Function Documentation

◆ __xmlParserInputBufferCreateFilename()

xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename ( const char URI,
xmlCharEncoding  enc 
)

◆ xmlAllocParserInputBuffer()

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlAllocParserInputBuffer ( xmlCharEncoding  enc)

Referenced by xmlCtxtResetPush().

◆ xmlCheckFilename()

XMLPUBFUN int XMLCALL xmlCheckFilename ( const char path)

◆ xmlCheckHTTPInput()

XMLPUBFUN xmlParserInputPtr XMLCALL xmlCheckHTTPInput ( xmlParserCtxtPtr  ctxt,
xmlParserInputPtr  ret 
)

Referenced by xmlNewInputFromFile().

◆ xmlCleanupInputCallbacks()

XMLPUBFUN void XMLCALL xmlCleanupInputCallbacks ( void  )

Referenced by DllMain(), and xmlCleanupParser().

◆ xmlFileClose()

XMLPUBFUN int XMLCALL xmlFileClose ( void context)

◆ xmlFileMatch()

XMLPUBFUN int XMLCALL xmlFileMatch ( const char filename)

Default 'file://' protocol callbacks

◆ xmlFileOpen()

XMLPUBFUN void* XMLCALL xmlFileOpen ( const char filename)

◆ xmlFileRead()

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

◆ xmlFreeParserInputBuffer()

◆ xmlNoNetExternalEntityLoader()

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

Referenced by main().

◆ xmlNormalizeWindowsPath()

XMLPUBFUN xmlChar* XMLCALL xmlNormalizeWindowsPath ( const xmlChar path)

◆ xmlParserGetDirectory()

◆ xmlParserInputBufferCreateFd()

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlParserInputBufferCreateFd ( int  fd,
xmlCharEncoding  enc 
)

Referenced by xmlCtxtReadFd(), and xmlReadFd().

◆ xmlParserInputBufferCreateFile()

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlParserInputBufferCreateFile ( FILE file,
xmlCharEncoding  enc 
)

◆ xmlParserInputBufferCreateFilename()

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlParserInputBufferCreateFilename ( const char URI,
xmlCharEncoding  enc 
)

Referenced by testSAX(), and xmlNewInputFromFile().

◆ xmlParserInputBufferCreateIO()

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

◆ xmlParserInputBufferCreateMem()

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

◆ xmlParserInputBufferCreateStatic()

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

◆ xmlParserInputBufferGrow()

XMLPUBFUN int XMLCALL xmlParserInputBufferGrow ( xmlParserInputBufferPtr  in,
int  len 
)

Referenced by xmlParserInputGrow().

◆ xmlParserInputBufferPush()

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

Referenced by xmlCtxtResetPush().

◆ xmlParserInputBufferRead()

XMLPUBFUN int XMLCALL xmlParserInputBufferRead ( xmlParserInputBufferPtr  in,
int  len 
)

Referenced by xmlParserInputShrink().

◆ xmlPopInputCallbacks()

XMLPUBFUN int XMLCALL xmlPopInputCallbacks ( void  )

◆ xmlRegisterDefaultInputCallbacks()

XMLPUBFUN void XMLCALL xmlRegisterDefaultInputCallbacks ( void  )

Referenced by DllMain(), and xmlInitParser().

◆ xmlRegisterInputCallbacks()

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

Referenced by DllMain().