diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-05 14:20:58 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-05 14:20:58 +0000 |
commit | 01d8e176628db2dc5a2a192ac7b097bd1998c8eb (patch) | |
tree | aaafdf5d24f1bf0299dc171862c1a41e8f2f6914 /src/stylesheet.c | |
parent | 478018da914c247d0d49f64aba9eb3eb9a552199 (diff) | |
download | libcss-01d8e176628db2dc5a2a192ac7b097bd1998c8eb.tar.gz libcss-01d8e176628db2dc5a2a192ac7b097bd1998c8eb.tar.bz2 |
Provide notification hook for imported stylesheets, to enable clients to parallelise their processing
svn path=/trunk/libcss/; revision=10999
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r-- | src/stylesheet.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index eed4735..f2bb81a 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -32,6 +32,8 @@ static size_t _rule_size(const css_rule *rule); * \param alloc_pw Client private data for alloc * \param resolve URL resolution function * \param resolve_pw Client private data for resolve + * \param import Import notification function + * \param import_pw Client private data for import * \param stylesheet Pointer to location to receive stylesheet * \return CSS_OK on success, * CSS_BADPARM on bad parameters, @@ -42,6 +44,7 @@ css_error css_stylesheet_create(css_language_level level, bool allow_quirks, bool inline_style, css_allocator_fn alloc, void *alloc_pw, css_url_resolution_fn resolve, void *resolve_pw, + css_import_notification_fn import, void *import_pw, css_stylesheet **stylesheet) { css_parser_optparams params; @@ -135,6 +138,9 @@ css_error css_stylesheet_create(css_language_level level, sheet->resolve = resolve; sheet->resolve_pw = resolve_pw; + sheet->import = import; + sheet->import_pw = import_pw; + sheet->alloc = alloc; sheet->pw = alloc_pw; |