iconv: Bail out of the loop when an illegal sequence of bytes occurs.
[elinks/elinks-j605.git] / src / document / css / css.h
blob7d5e0f92b0b83e4ecd90fd5b846cd19b35d9814b
2 #ifndef EL__DOCUMENT_CSS_CSS_H
3 #define EL__DOCUMENT_CSS_CSS_H
5 struct css_stylesheet;
6 struct module;
7 struct uri;
9 /** @todo TODO: Basicly we need two default stylesheets. One that
10 * ELinks controls (which is defined by the defaults of every
11 * property, they could however also be loadable at startup time,
12 * e.g. when/if we will have a very generalised renderer it would be
13 * possible to bypass the HTML renderer but would simply use an HTML
14 * stylesheet like the one in CSS2 Appendix A. "A sample style sheet
15 * for HTML 4.0") and one that the user controls. They should be
16 * remerged when ever the user reloads the user stylesheet but else
17 * they should be pretty static. Together they defines the basic
18 * layouting should be done when rendering the document. */
19 extern struct css_stylesheet default_stylesheet;
21 extern struct module css_module;
23 /** This function will try to import the given @a url from the cache. */
24 void import_css(struct css_stylesheet *css, struct uri *uri);
26 int supports_css_media_type(const unsigned char *optstr,
27 const unsigned char *token, size_t token_length);
29 #endif