summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcss/select.h22
1 files changed, 22 insertions, 0 deletions
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,