From 2fc4177a09cc6fc6706f84dbe157077a41b6e22b Mon Sep 17 00:00:00 2001 From: Lucas Neves Date: Sat, 26 Aug 2017 15:16:55 +0100 Subject: Example: Fix css_presentational_hints prototype and return value. --- examples/example1.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/example1.c b/examples/example1.c index 511771d..be7a582 100644 --- a/examples/example1.c +++ b/examples/example1.c @@ -95,7 +95,7 @@ static css_error node_is_target(void *pw, void *node, bool *match); static css_error node_is_lang(void *pw, void *node, lwc_string *lang, bool *match); static css_error node_presentational_hint(void *pw, void *node, - uint32_t property, css_hint *hint); + uint32_t *nhints, css_hint **hints); static css_error ua_default_for_property(void *pw, uint32_t property, css_hint *hint); static css_error compute_font_size(void *pw, const css_hint *parent, @@ -625,13 +625,13 @@ css_error node_is_lang(void *pw, void *n, } css_error node_presentational_hint(void *pw, void *node, - uint32_t property, css_hint *hint) + uint32_t *nhints, css_hint **hints) { UNUSED(pw); UNUSED(node); - UNUSED(property); - UNUSED(hint); - return CSS_PROPERTY_NOT_SET; + *nhints = 0; + *hints = NULL; + return CSS_OK; } css_error ua_default_for_property(void *pw, uint32_t property, css_hint *hint) -- cgit v1.2.3