From fc18fccd5ed2050a05cad53714f429a529253711 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 13 Mar 2011 09:24:03 +0000 Subject: Add structure versioning for client input svn path=/trunk/libcss/; revision=12007 --- include/libcss/select.h | 7 +++++++ include/libcss/stylesheet.h | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'include') 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; -- cgit v1.2.3