diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-03-13 09:24:03 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-03-13 09:24:03 +0000 |
commit | fc18fccd5ed2050a05cad53714f429a529253711 (patch) | |
tree | 659c5ee8e912fd70546cd7578551701346b7fb61 /include | |
parent | c21a5d244101c695d59feaf5e333c194a33cc029 (diff) | |
download | libcss-fc18fccd5ed2050a05cad53714f429a529253711.tar.gz libcss-fc18fccd5ed2050a05cad53714f429a529253711.tar.bz2 |
Add structure versioning for client input
svn path=/trunk/libcss/; revision=12007
Diffstat (limited to 'include')
-rw-r--r-- | include/libcss/select.h | 7 | ||||
-rw-r--r-- | include/libcss/stylesheet.h | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/libcss/select.h b/include/libcss/select.h index bdc16ac..b6f9475 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -46,7 +46,14 @@ typedef struct css_select_results { css_computed_style *styles[CSS_PSEUDO_ELEMENT_COUNT]; } css_select_results; +typedef enum css_select_handler_version { + CSS_SELECT_HANDLER_VERSION_1 = 1 +} css_select_handler_version; + typedef struct css_select_handler { + /** ABI version of this structure */ + uint32_t handler_version; + css_error (*node_name)(void *pw, void *node, css_qname *qname); css_error (*node_classes)(void *pw, void *node, diff --git a/include/libcss/stylesheet.h b/include/libcss/stylesheet.h index 29049c9..8ef530e 100644 --- a/include/libcss/stylesheet.h +++ b/include/libcss/stylesheet.h @@ -89,10 +89,17 @@ typedef struct css_system_font { typedef css_error (*css_font_resolution_fn)(void *pw, lwc_string *name, css_system_font *system_font); +typedef enum css_stylesheet_params_version { + CSS_STYLESHEET_PARAMS_VERSION_1 = 1 +} css_stylesheet_params_version; + /** * Parameter block for css_stylesheet_create() */ typedef struct css_stylesheet_params { + /** ABI version of this structure */ + uint32_t params_version; + /** The language level of the stylesheet */ css_language_level level; |