summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Neves <lcneves@gmail.com>2017-08-26 14:16:55 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2017-08-26 14:16:55 (GMT)
commit2fc4177a09cc6fc6706f84dbe157077a41b6e22b (patch)
tree90d097c1235e4c4e29d03eff44a504a2e663239a
parentcb0f7f373f55455d07f349f589ce3684d2fda167 (diff)
downloadlibcss-2fc4177a09cc6fc6706f84dbe157077a41b6e22b.tar.gz
libcss-2fc4177a09cc6fc6706f84dbe157077a41b6e22b.tar.bz2
Example: Fix css_presentational_hints prototype and return value.
-rw-r--r--examples/example1.c10
1 files 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)