mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
doc: Misc fixes to IO documentation
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
* @brief interface for the I/O interfaces used by the parser
|
* @brief I/O interfaces used by the parser
|
||||||
*
|
*
|
||||||
* interface for the I/O interfaces used by the parser
|
* Functions and datatypes for parser input and output.
|
||||||
*
|
*
|
||||||
* @copyright See Copyright for the status of this software.
|
* @copyright See Copyright for the status of this software.
|
||||||
*
|
*
|
||||||
@@ -24,11 +24,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* Those are the functions and datatypes for the parser input
|
|
||||||
* I/O structures.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param filename the filename or URI
|
* @param filename the filename or URI
|
||||||
*
|
*
|
||||||
@@ -66,11 +61,6 @@ typedef int (*xmlInputReadCallback) (void * context, char * buffer, int len);
|
|||||||
typedef int (*xmlInputCloseCallback) (void * context);
|
typedef int (*xmlInputCloseCallback) (void * context);
|
||||||
|
|
||||||
#ifdef LIBXML_OUTPUT_ENABLED
|
#ifdef LIBXML_OUTPUT_ENABLED
|
||||||
/*
|
|
||||||
* Those are the functions and datatypes for the library output
|
|
||||||
* I/O structures.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param filename the filename or URI
|
* @param filename the filename or URI
|
||||||
*
|
*
|
||||||
@@ -137,6 +127,10 @@ typedef xmlOutputBufferPtr
|
|||||||
(*xmlOutputBufferCreateFilenameFunc)(const char *URI,
|
(*xmlOutputBufferCreateFilenameFunc)(const char *URI,
|
||||||
xmlCharEncodingHandlerPtr encoder, int compression);
|
xmlCharEncodingHandlerPtr encoder, int compression);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This struct and all related functions should be ultimately
|
||||||
|
* be removed from the public interface.
|
||||||
|
*/
|
||||||
struct _xmlParserInputBuffer {
|
struct _xmlParserInputBuffer {
|
||||||
void* context;
|
void* context;
|
||||||
xmlInputReadCallback readcallback;
|
xmlInputReadCallback readcallback;
|
||||||
@@ -153,6 +147,9 @@ struct _xmlParserInputBuffer {
|
|||||||
|
|
||||||
|
|
||||||
#ifdef LIBXML_OUTPUT_ENABLED
|
#ifdef LIBXML_OUTPUT_ENABLED
|
||||||
|
/**
|
||||||
|
* Output buffer
|
||||||
|
*/
|
||||||
struct _xmlOutputBuffer {
|
struct _xmlOutputBuffer {
|
||||||
void* context;
|
void* context;
|
||||||
xmlOutputWriteCallback writecallback;
|
xmlOutputWriteCallback writecallback;
|
||||||
@@ -167,7 +164,6 @@ struct _xmlOutputBuffer {
|
|||||||
};
|
};
|
||||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||||
|
|
||||||
/** @cond IGNORE */
|
|
||||||
XML_DEPRECATED
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc *
|
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc *
|
||||||
__xmlParserInputBufferCreateFilenameValue(void);
|
__xmlParserInputBufferCreateFilenameValue(void);
|
||||||
@@ -181,7 +177,6 @@ __xmlOutputBufferCreateFilenameValue(void);
|
|||||||
#define xmlOutputBufferCreateFilenameValue \
|
#define xmlOutputBufferCreateFilenameValue \
|
||||||
(*__xmlOutputBufferCreateFilenameValue())
|
(*__xmlOutputBufferCreateFilenameValue())
|
||||||
#endif
|
#endif
|
||||||
/** @endcond */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interfaces for input
|
* Interfaces for input
|
||||||
@@ -335,9 +330,7 @@ XMLPUBFUN xmlChar *
|
|||||||
XML_DEPRECATED
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlCheckFilename (const char *path);
|
xmlCheckFilename (const char *path);
|
||||||
/**
|
|
||||||
* Default 'file://' protocol callbacks
|
|
||||||
*/
|
|
||||||
XML_DEPRECATED
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlFileMatch (const char *filename);
|
xmlFileMatch (const char *filename);
|
||||||
@@ -353,9 +346,6 @@ XML_DEPRECATED
|
|||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlFileClose (void * context);
|
xmlFileClose (void * context);
|
||||||
|
|
||||||
/**
|
|
||||||
* Default 'http://' protocol callbacks
|
|
||||||
*/
|
|
||||||
#ifdef LIBXML_HTTP_STUBS_ENABLED
|
#ifdef LIBXML_HTTP_STUBS_ENABLED
|
||||||
/** @cond IGNORE */
|
/** @cond IGNORE */
|
||||||
XML_DEPRECATED
|
XML_DEPRECATED
|
||||||
|
10
xmlIO.c
10
xmlIO.c
@@ -1495,11 +1495,9 @@ error:
|
|||||||
* @param compression the compression ration (0 none, 9 max).
|
* @param compression the compression ration (0 none, 9 max).
|
||||||
*
|
*
|
||||||
* Create a buffered output for the progressive saving of a file
|
* Create a buffered output for the progressive saving of a file
|
||||||
* If filename is "-' then we use stdout as the output.
|
* If filename is `"-"` then we use stdout as the output.
|
||||||
* Automatic support for ZLIB/Compress compressed document is provided
|
* Automatic support for ZLIB/Compress compressed document is provided
|
||||||
* by default if found at compile-time.
|
* by default if found at compile-time.
|
||||||
* TODO: currently if compression is set, the library only support
|
|
||||||
* writing to a local file.
|
|
||||||
*
|
*
|
||||||
* Consumes `encoder` even in error case.
|
* Consumes `encoder` even in error case.
|
||||||
*
|
*
|
||||||
@@ -1549,11 +1547,11 @@ xmlParserInputBufferCreateFile(FILE *file, xmlCharEncoding enc) {
|
|||||||
|
|
||||||
#ifdef LIBXML_OUTPUT_ENABLED
|
#ifdef LIBXML_OUTPUT_ENABLED
|
||||||
/**
|
/**
|
||||||
* @param file a FILE*
|
* @param file a `FILE *`
|
||||||
* @param encoder the encoding converter or NULL
|
* @param encoder the encoding converter or NULL
|
||||||
*
|
*
|
||||||
* Create a buffered output for the progressive saving to a FILE *
|
* Create a buffered output for the progressive saving to a `FILE *`
|
||||||
* buffered C I/O
|
* buffered C I/O.
|
||||||
*
|
*
|
||||||
* Consumes `encoder` even in error case.
|
* Consumes `encoder` even in error case.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user