diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-05-09 15:32:34 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-05-09 15:32:34 +0000 |
commit | 83f9e707eba500d39c12b8078948b932706cdab2 (patch) | |
tree | c904e2c3daa1b70f86d6d5d1d9ae5533d3a44d0f /content | |
parent | 0929aa897b73bb5a028c732a0867a7f093f92629 (diff) | |
download | netsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.gz netsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.bz2 |
refactor content handler initilisation to use named initialisors
svn path=/trunk/netsurf/; revision=12341
Diffstat (limited to 'content')
-rw-r--r-- | content/content.c | 4 | ||||
-rw-r--r-- | content/content_protected.h | 2 |
2 files changed, 3 insertions, 3 deletions
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); |