summaryrefslogtreecommitdiff
path: root/css/css.h
diff options
context:
space:
mode:
Diffstat (limited to 'css/css.h')
-rw-r--r--css/css.h11
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);