From 737d6ad557a7ee6300cb6c02cf0d32ed55b13531 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Apr 2010 10:52:18 +0000 Subject: Merge jmb/kill-reentrancy. r=vince svn path=/trunk/netsurf/; revision=10346 --- css/css.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'css/css.h') diff --git a/css/css.h b/css/css.h index e192b969c..25b91a3e2 100644 --- a/css/css.h +++ b/css/css.h @@ -49,6 +49,14 @@ struct nscss_import { uint64_t media; /**< Media types that sheet applies to */ }; +/** + * Type of callback called when a CSS object has finished importing sheets + * + * \param css CSS object that has completed + * \param pw Client-specific data + */ +typedef void (*nscss_done_callback)(struct content_css_data *css, void *pw); + bool nscss_create(struct content *c, const struct http_parameter *params); bool nscss_process_data(struct content *c, const char *data, unsigned int size); @@ -63,7 +71,8 @@ nserror nscss_create_css_data(struct content_css_data *c, const char *url, const char *charset, bool quirks); css_error nscss_process_css_data(struct content_css_data *c, const char *data, unsigned int size); -css_error nscss_convert_css_data(struct content_css_data *c); +css_error nscss_convert_css_data(struct content_css_data *c, + nscss_done_callback callback, void *pw); void nscss_destroy_css_data(struct content_css_data *c); struct nscss_import *nscss_get_imports(struct hlcache_handle *h, uint32_t *n); -- cgit v1.2.3