diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-08-26 15:50:03 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-08-26 15:50:03 +0100 |
commit | d70beb28db6f978ae9fc674640f3101e20c05bb8 (patch) | |
tree | 44eb1e63f612675d75bceebbb85fcebb44588d49 /content/handlers/css/css.c | |
parent | aedd9b55132bb48f6d25ae4c080dc0ce71efb44d (diff) | |
download | netsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.gz netsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.bz2 |
Content API: Make content_broadcast take pointer to content_msg_data.
Diffstat (limited to 'content/handlers/css/css.c')
-rw-r--r-- | content/handlers/css/css.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/handlers/css/css.c b/content/handlers/css/css.c index 997eb5115..a665fbdc4 100644 --- a/content/handlers/css/css.c +++ b/content/handlers/css/css.c @@ -172,7 +172,7 @@ nscss_create(const content_handler *handler, nscss_content_done, result); if (error != NSERROR_OK) { msg_data.error = messages_get("NoMemory"); - content_broadcast(&result->base, CONTENT_MSG_ERROR, msg_data); + content_broadcast(&result->base, CONTENT_MSG_ERROR, &msg_data); if (charset_value != NULL) lwc_string_unref(charset_value); free(result); @@ -256,7 +256,7 @@ bool nscss_process_data(struct content *c, const char *data, unsigned int size) error = nscss_process_css_data(&css->data, data, size); if (error != CSS_OK && error != CSS_NEEDDATA) { msg_data.error = "?"; - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); } return (error == CSS_OK || error == CSS_NEEDDATA); @@ -292,7 +292,7 @@ bool nscss_convert(struct content *c) error = nscss_convert_css_data(&css->data); if (error != CSS_OK) { msg_data.error = "?"; - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); return false; } @@ -485,7 +485,7 @@ void nscss_content_done(struct content_css_data *css, void *pw) error = css_stylesheet_size(css->sheet, &size); if (error != CSS_OK) { msg_data.error = "?"; - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); content_set_error(c); return; } |