iconv: Bail out of the loop when an illegal sequence of bytes occurs.
[elinks/elinks-j605.git] / src / document / html / parse-meta-refresh.h
blobd81409d3d631726a07b1e6bd1827078e3e50f9ef
1 #ifndef EL__DOCUMENT_HTML_PARSE_META_REFRESH_H
2 #define EL__DOCUMENT_HTML_PARSE_META_REFRESH_H
4 /** Parses a \<meta http-equiv="refresh" content="..."> element.
6 * @param[in] content
7 * The value of the content attribute, with entities already expanded.
8 * @param[out] delay
9 * How many seconds to wait before refreshing.
10 * @param[out] url
11 * The URI to load when refreshing, or NULL to reload the same document.
12 * The caller must free the string with mem_free() unless it's NULL.
14 * @return
15 * 0 if successful, or negative on error.
16 * On error, *@a url is NULL. */
17 int html_parse_meta_refresh(const unsigned char *content,
18 unsigned long *delay,
19 unsigned char **url);
21 #endif