path: root/css/css.h
diff options
authorJohn Mark Bell <>2010-04-11 10:52:18 +0000
committerJohn Mark Bell <>2010-04-11 10:52:18 +0000
commit737d6ad557a7ee6300cb6c02cf0d32ed55b13531 (patch)
treea66462495e4ffb216cd37ff843595ed214f341f9 /css/css.h
parent2bcf6329739ac3990312dd702cfa508725a19286 (diff)
Merge jmb/kill-reentrancy. r=vince
svn path=/trunk/netsurf/; revision=10346
Diffstat (limited to 'css/css.h')
1 files changed, 10 insertions, 1 deletions
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);