From f4092abdf94af6a99aff944d6264bc1284e8bdd4 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Mon, 10 Oct 2011 17:43:39 +0200 Subject: Imported nx-X11-3.1.0-1.tar.gz Summary: Imported nx-X11-3.1.0-1.tar.gz Keywords: Imported nx-X11-3.1.0-1.tar.gz into Git repository --- nx-X11/extras/expat/xmlwf/xmlmime.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nx-X11/extras/expat/xmlwf/xmlmime.h (limited to 'nx-X11/extras/expat/xmlwf/xmlmime.h') diff --git a/nx-X11/extras/expat/xmlwf/xmlmime.h b/nx-X11/extras/expat/xmlwf/xmlmime.h new file mode 100644 index 000000000..bf0356df0 --- /dev/null +++ b/nx-X11/extras/expat/xmlwf/xmlmime.h @@ -0,0 +1,19 @@ +#ifdef __cplusplus +extern "C" { +#endif + +/* Registered charset names are at most 40 characters long. */ + +#define CHARSET_MAX 41 + +/* Figure out the charset to use from the ContentType. + buf contains the body of the header field (the part after "Content-Type:"). + charset gets the charset to use. It must be at least CHARSET_MAX chars + long. charset will be empty if the default charset should be used. +*/ + +void getXMLCharset(const char *buf, char *charset); + +#ifdef __cplusplus +} +#endif -- cgit v1.2.3