diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-14 00:29:45 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-14 00:29:45 +0000 |
commit | 5134709a436559f89871d0dc5cac57c17aa7d3ab (patch) | |
tree | 19d2354687c67f97067b5b6b1c2317caec8caef6 /src/stylesheet.h | |
parent | 3ba0934ed0722b1021acc8bda47b4c66e1914ab9 (diff) | |
download | libcss-5134709a436559f89871d0dc5cac57c17aa7d3ab.tar.gz libcss-5134709a436559f89871d0dc5cac57c17aa7d3ab.tar.bz2 |
Create charset rule objects.
svn path=/trunk/libcss/; revision=6059
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r-- | src/stylesheet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h index f32bbe3..ff32d97 100644 --- a/src/stylesheet.h +++ b/src/stylesheet.h @@ -133,7 +133,7 @@ typedef struct css_rule_import { typedef struct css_rule_charset { css_rule base; - char *encoding; /** \todo use MIB enum? */ + const parserutils_hash_entry *encoding; /** \todo use MIB enum? */ } css_rule_charset; struct css_stylesheet { @@ -206,6 +206,9 @@ css_error css_stylesheet_rule_add_selector(css_stylesheet *sheet, css_error css_stylesheet_rule_append_style(css_stylesheet *sheet, css_rule *rule, css_style *style); +css_error css_stylesheet_rule_set_charset(css_stylesheet *sheet, + css_rule *rule, const parserutils_hash_entry *charset); + /** \todo registering other rule-type data with css_rules */ css_error css_stylesheet_add_rule(css_stylesheet *sheet, css_rule *rule); |