diff options
Diffstat (limited to 'css/css.h')
-rw-r--r-- | css/css.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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); |