diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-01 10:35:37 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-01 10:35:37 +0000 |
commit | 94ff706d99220d915be8cedcda6b93ead998f5b8 (patch) | |
tree | f28b6eec02fb023351dbeb2610d19d7c76580757 /include | |
parent | 5099ad82bbfc21bd45408bf5ca069df3ecfd0e8d (diff) | |
download | libcss-94ff706d99220d915be8cedcda6b93ead998f5b8.tar.gz libcss-94ff706d99220d915be8cedcda6b93ead998f5b8.tar.bz2 |
Make all URIs absolute
svn path=/trunk/libcss/; revision=8228
Diffstat (limited to 'include')
-rw-r--r-- | include/libcss/stylesheet.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libcss/stylesheet.h b/include/libcss/stylesheet.h index df95e17..bdb45fa 100644 --- a/include/libcss/stylesheet.h +++ b/include/libcss/stylesheet.h @@ -11,11 +11,25 @@ #include <libcss/errors.h> #include <libcss/types.h> +/** + * Callback to resolve an URL + * + * \param pw Client data + * \param dict String internment context + * \param base Base URI (absolute) + * \param rel URL to resolve, either absolute or relative to base + * \param abs Pointer to location to receive result + * \return CSS_OK on success, appropriate error otherwise. + */ +typedef css_error (*css_url_resolution_fn)(void *pw, lwc_context *dict, + const char *base, lwc_string *rel, lwc_string **abs); + css_error css_stylesheet_create(css_language_level level, const char *charset, const char *url, const char *title, css_origin origin, uint64_t media, bool allow_quirks, bool inline_style, lwc_context *dict, css_allocator_fn alloc, void *alloc_pw, + css_url_resolution_fn resolve, void *resolve_pw, css_stylesheet **stylesheet); css_error css_stylesheet_destroy(css_stylesheet *sheet); |