From aead1abef55aa88d19bf8b7b5c30b1b0d0255b0b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 9 Feb 2009 19:10:47 +0000 Subject: Match details svn path=/trunk/libcss/; revision=6404 --- include/libcss/select.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include/libcss/select.h') diff --git a/include/libcss/select.h b/include/libcss/select.h index f51efe5..1226480 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -28,6 +28,28 @@ typedef struct css_select_handler { css_error (*parent_node)(void *pw, void *node, void **parent); css_error (*sibling_node)(void *pw, void *node, void **sibling); + + css_error (*node_has_class)(void *pw, void *node, + const uint8_t *name, size_t len, + bool *match); + css_error (*node_has_id)(void *pw, void *node, + const uint8_t *name, size_t len, + bool *match); + css_error (*node_has_attribute)(void *pw, void *node, + const uint8_t *name, size_t len, + bool *match); + css_error (*node_has_attribute_equal)(void *pw, void *node, + const uint8_t *name, size_t nlen, + const uint8_t *value, size_t vlen, + bool *match); + css_error (*node_has_attribute_dashmatch)(void *pw, void *node, + const uint8_t *name, size_t nlen, + const uint8_t *value, size_t vlen, + bool *match); + css_error (*node_has_attribute_includes)(void *pw, void *node, + const uint8_t *name, size_t nlen, + const uint8_t *value, size_t vlen, + bool *match); } css_select_handler; css_error css_select_ctx_create(css_alloc alloc, void *pw, -- cgit v1.2.3