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/image/rsvg.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/image/rsvg.c')
-rw-r--r-- | content/handlers/image/rsvg.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/content/handlers/image/rsvg.c b/content/handlers/image/rsvg.c index 0665f217f..24819df57 100644 --- a/content/handlers/image/rsvg.c +++ b/content/handlers/image/rsvg.c @@ -72,7 +72,7 @@ static nserror rsvg_create_svg_data(rsvg_content *c) if ((c->rsvgh = rsvg_handle_new()) == NULL) { LOG("rsvg_handle_new() returned NULL."); msg_data.error = messages_get("NoMemory"); - content_broadcast(&c->base, CONTENT_MSG_ERROR, msg_data); + content_broadcast(&c->base, CONTENT_MSG_ERROR, &msg_data); return NSERROR_NOMEM; } @@ -122,7 +122,7 @@ static bool rsvg_process_data(struct content *c, const char *data, &err) == FALSE) { LOG("rsvg_handle_write returned an error: %s", err->message); msg_data.error = err->message; - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); return false; } @@ -168,7 +168,7 @@ static bool rsvg_convert(struct content *c) if (rsvg_handle_close(d->rsvgh, &err) == FALSE) { LOG("rsvg_handle_close returned an error: %s", err->message); msg_data.error = err->message; - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); return false; } @@ -186,7 +186,7 @@ static bool rsvg_convert(struct content *c) BITMAP_NEW)) == NULL) { LOG("Failed to create bitmap for rsvg render."); msg_data.error = messages_get("NoMemory"); - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); return false; } @@ -197,14 +197,14 @@ static bool rsvg_convert(struct content *c) guit->bitmap->get_rowstride(d->bitmap))) == NULL) { LOG("Failed to create Cairo image surface for rsvg render."); msg_data.error = messages_get("NoMemory"); - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); return false; } if ((d->ct = cairo_create(d->cs)) == NULL) { LOG("Failed to create Cairo drawing context for rsvg render."); msg_data.error = messages_get("NoMemory"); - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); return false; } |