From 5eb5ec3682ba75cec9616039c60987eeee26e5ee Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Sun, 10 Aug 2008 16:37:52 +0000 Subject: Add support in the treebuilder. svn path=/trunk/hubbub/; revision=4991 --- src/charset/detect.c | 2 -- src/charset/detect.h | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/charset') 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 -- cgit v1.2.3