aboutsummaryrefslogtreecommitdiff
path: root/expat/xmlwf/xmlmime.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-10-18 13:24:37 +0200
committermarha <marha@users.sourceforge.net>2013-10-18 13:27:05 +0200
commit5880b059e9a156336daf32a73bed72def6ba90f2 (patch)
tree376112133a13389f5599e008c9f858c35f0cd70b /expat/xmlwf/xmlmime.h
parentb8a77c943fa53005b6cdb1ab792acf5ff0a131be (diff)
downloadvcxsrv-5880b059e9a156336daf32a73bed72def6ba90f2.tar.gz
vcxsrv-5880b059e9a156336daf32a73bed72def6ba90f2.tar.bz2
vcxsrv-5880b059e9a156336daf32a73bed72def6ba90f2.zip
Added expat-2.1.0
Diffstat (limited to 'expat/xmlwf/xmlmime.h')
-rw-r--r--expat/xmlwf/xmlmime.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/expat/xmlwf/xmlmime.h b/expat/xmlwf/xmlmime.h
new file mode 100644
index 000000000..bf0356df0
--- /dev/null
+++ b/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