From 83f9e707eba500d39c12b8078948b932706cdab2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 9 May 2011 15:32:34 +0000 Subject: refactor content handler initilisation to use named initialisors svn path=/trunk/netsurf/; revision=12341 --- content/content.c | 4 ++-- content/content_protected.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'content') diff --git a/content/content.c b/content/content.c index 606f2a91b..c2bc5902b 100644 --- a/content/content.c +++ b/content/content.c @@ -278,9 +278,9 @@ void content_convert(struct content *c) LOG(("content %s (%p)", llcache_handle_get_url(c->llcache), c)); - if (c->handler->convert != NULL) { + if (c->handler->data_complete != NULL) { c->locked = true; - if (c->handler->convert(c) == false) { + if (c->handler->data_complete(c) == false) { c->locked = false; c->status = CONTENT_STATUS_ERROR; } diff --git a/content/content_protected.h b/content/content_protected.h index 6659e2cd8..144136df4 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -46,7 +46,7 @@ struct content_handler { bool (*process_data)(struct content *c, const char *data, unsigned int size); - bool (*convert)(struct content *c); + bool (*data_complete)(struct content *c); void (*reformat)(struct content *c, int width, int height); void (*destroy)(struct content *c); void (*stop)(struct content *c); -- cgit v1.2.3