From 8c075f16ec633670ab75c865dcb74f78160d162e Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 9 Feb 2009 15:22:08 +0000 Subject: Beginnings of a handler function table. svn path=/trunk/libcss/; revision=6401 --- include/libcss/select.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/libcss/select.h') diff --git a/include/libcss/select.h b/include/libcss/select.h index 1948ca1..ab28b3b 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -12,6 +12,13 @@ #include #include +typedef struct css_select_handler { + css_error (*node_name)(void *pw, void *node, const uint8_t **name, + size_t *len); + + +} css_select_handler; + css_error css_select_ctx_create(css_alloc alloc, void *pw, css_select_ctx **result); css_error css_select_ctx_destroy(css_select_ctx *ctx); @@ -29,6 +36,7 @@ css_error css_select_ctx_get_sheet(css_select_ctx *ctx, uint32_t index, css_error css_select_style(css_select_ctx *ctx, void *node, uint64_t pseudo_element, uint64_t pseudo_classes, - uint64_t media, css_computed_style *result); + uint64_t media, css_computed_style *result, + css_select_handler *handler, void *pw); #endif -- cgit v1.2.3