summaryrefslogtreecommitdiff
path: root/src/charset
diff options
context:
space:
mode:
Diffstat (limited to 'src/charset')
-rw-r--r--src/charset/detect.c2
-rw-r--r--src/charset/detect.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/charset/detect.c b/src/charset/detect.c
index 3809770..7d3459f 100644
--- a/src/charset/detect.c
+++ b/src/charset/detect.c
@@ -21,8 +21,6 @@ static uint16_t hubbub_charset_read_bom(const uint8_t *data, size_t len);
static uint16_t hubbub_charset_scan_meta(const uint8_t *data, size_t len);
static uint16_t hubbub_charset_parse_attributes(const uint8_t **pos,
const uint8_t *end);
-static uint16_t hubbub_charset_parse_content(const uint8_t *value,
- uint32_t valuelen);
static bool hubbub_charset_get_attribute(const uint8_t **data,
const uint8_t *end,
const uint8_t **name, uint32_t *namelen,
diff --git a/src/charset/detect.h b/src/charset/detect.h
index 807f374..cb837d0 100644
--- a/src/charset/detect.h
+++ b/src/charset/detect.h
@@ -16,5 +16,9 @@
parserutils_error hubbub_charset_extract(const uint8_t *data, size_t len,
uint16_t *mibenum, uint32_t *source);
+/* Parse a Content-Type string for an encoding */
+uint16_t hubbub_charset_parse_content(const uint8_t *value,
+ uint32_t valuelen);
+
#endif