summaryrefslogtreecommitdiff
path: root/expat-2.0.1/xmlwf/xmlmime.h
diff options
context:
space:
mode:
Diffstat (limited to 'expat-2.0.1/xmlwf/xmlmime.h')
-rw-r--r--expat-2.0.1/xmlwf/xmlmime.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/expat-2.0.1/xmlwf/xmlmime.h b/expat-2.0.1/xmlwf/xmlmime.h
new file mode 100644
index 0000000..bf0356d
--- /dev/null
+++ b/expat-2.0.1/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