summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcss/select.h10
1 files changed, 9 insertions, 1 deletions
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 <libcss/functypes.h>
#include <libcss/types.h>
+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