diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-07-23 19:10:52 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-07-23 19:10:52 +0000 |
commit | f012a64d13d85d53eac0d4d6625508109e7c9e9d (patch) | |
tree | fdb594b708d249d54b16c674479c376018e944a3 /include/libxml | |
parent | e812624729df8ecb507aaafb780bef39124f8d9f (diff) | |
download | libxml2-f012a64d13d85d53eac0d4d6625508109e7c9e9d.tar.gz |
get rid of the readline and libhistory dependancies by default, release
* configure.in: get rid of the readline and libhistory
dependancies by default, release 2.4.1 with IA64 fix
* nanohttp.c tree.c xmlIO.c include/libxml/nanohttp.h
include/libxml/tree.h include/libxml/xmlIO.h: incorporated
John Kroll fixes to allow saving to HTTP via PUT (or
POST of needed).
* doc/html/*.html: regenerated the docs
Daniel
Diffstat (limited to 'include/libxml')
-rw-r--r-- | include/libxml/nanohttp.h | 6 | ||||
-rw-r--r-- | include/libxml/tree.h | 5 | ||||
-rw-r--r-- | include/libxml/xmlIO.h | 12 |
3 files changed, 19 insertions, 4 deletions
diff --git a/include/libxml/nanohttp.h b/include/libxml/nanohttp.h index 9e255bd4..1ddbdf6e 100644 --- a/include/libxml/nanohttp.h +++ b/include/libxml/nanohttp.h @@ -29,13 +29,15 @@ void * xmlNanoHTTPMethod (const char *URL, const char *method, const char *input, char **contentType, - const char *headers); + const char *headers, + int ilen); void * xmlNanoHTTPMethodRedir (const char *URL, const char *method, const char *input, char **contentType, char **redir, - const char *headers); + const char *headers, + int ilen); void * xmlNanoHTTPOpen (const char *URL, char **contentType); void * xmlNanoHTTPOpenRedir (const char *URL, diff --git a/include/libxml/tree.h b/include/libxml/tree.h index d72ebf7c..3b149d1f 100644 --- a/include/libxml/tree.h +++ b/include/libxml/tree.h @@ -805,6 +805,11 @@ int xmlSaveFormatFileTo (xmlOutputBuffer *buf, int format); */ +int xmlSaveFormatFileEnc ( const char * filename, + xmlDocPtr cur, + const char * encoding, + int format ); + int xmlSaveFileEnc (const char *filename, xmlDocPtr cur, const char *encoding); diff --git a/include/libxml/xmlIO.h b/include/libxml/xmlIO.h index 422dce46..e6c519bd 100644 --- a/include/libxml/xmlIO.h +++ b/include/libxml/xmlIO.h @@ -12,6 +12,7 @@ #define __XML_IO_H__ #include <stdio.h> +#include <libxml/xmlversion.h> #include <libxml/tree.h> #include <libxml/parser.h> #include <libxml/encoding.h> @@ -28,7 +29,7 @@ extern "C" { typedef int (*xmlInputMatchCallback) (char const *filename); typedef void * (*xmlInputOpenCallback) (char const *filename); typedef int (*xmlInputReadCallback) (void * context, char * buffer, int len); -typedef void (*xmlInputCloseCallback) (void * context); +typedef int (*xmlInputCloseCallback) (void * context); typedef struct _xmlParserInputBuffer xmlParserInputBuffer; typedef xmlParserInputBuffer *xmlParserInputBufferPtr; @@ -53,7 +54,7 @@ typedef int (*xmlOutputMatchCallback) (char const *filename); typedef void * (*xmlOutputOpenCallback) (char const *filename); typedef int (*xmlOutputWriteCallback) (void * context, const char * buffer, int len); -typedef void (*xmlOutputCloseCallback) (void * context); +typedef int (*xmlOutputCloseCallback) (void * context); typedef struct _xmlOutputBuffer xmlOutputBuffer; typedef xmlOutputBuffer *xmlOutputBufferPtr; @@ -156,6 +157,13 @@ int xmlRegisterOutputCallbacks (xmlOutputMatchCallback matchFunc, xmlOutputWriteCallback writeFunc, xmlOutputCloseCallback closeFunc); +/* This function only exists if HTTP support built into the library */ +#ifdef LIBXML_HTTP_ENABLED +void * xmlIOHTTPOpenW (const char * post_uri, + int compression ); +void xmlRegisterHTTPPostCallbacksI (void ); +#endif + /* * This save function are part of tree.h and HTMLtree.h actually */ |