diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-07 20:55:44 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-07 20:55:44 +0100 |
commit | ab952e063444544d57e86ff089715dd0b6558342 (patch) | |
tree | a4ae7751848bf6d42cda6b8df1397d6a489c81c8 /content/handlers/image | |
parent | 5f8b1497e1489e2b3c11e8a49f01770433115ee2 (diff) | |
download | netsurf-ab952e063444544d57e86ff089715dd0b6558342.tar.gz netsurf-ab952e063444544d57e86ff089715dd0b6558342.tar.bz2 |
improve content header usage
Diffstat (limited to 'content/handlers/image')
-rw-r--r-- | content/handlers/image/bmp.c | 13 | ||||
-rw-r--r-- | content/handlers/image/gif.c | 2 | ||||
-rw-r--r-- | content/handlers/image/ico.c | 1 | ||||
-rw-r--r-- | content/handlers/image/jpeg.c | 2 | ||||
-rw-r--r-- | content/handlers/image/png.c | 1 | ||||
-rw-r--r-- | content/handlers/image/rsvg.c | 1 | ||||
-rw-r--r-- | content/handlers/image/svg.c | 1 |
7 files changed, 17 insertions, 4 deletions
diff --git a/content/handlers/image/bmp.c b/content/handlers/image/bmp.c index 448728ede..a1a6ce686 100644 --- a/content/handlers/image/bmp.c +++ b/content/handlers/image/bmp.c @@ -33,6 +33,7 @@ #include "netsurf/content.h" #include "content/llcache.h" #include "content/content_protected.h" +#include "content/content_factory.h" #include "desktop/gui_internal.h" #include "image/bmp.h" @@ -87,10 +88,14 @@ static nserror nsbmp_create_bmp_data(nsbmp_content *bmp) return NSERROR_OK; } -static nserror nsbmp_create(const content_handler *handler, - lwc_string *imime_type, const struct http_parameter *params, - llcache_handle *llcache, const char *fallback_charset, - bool quirks, struct content **c) +static nserror +nsbmp_create(const struct content_handler *handler, + lwc_string *imime_type, + const struct http_parameter *params, + llcache_handle *llcache, + const char *fallback_charset, + bool quirks, + struct content **c) { nsbmp_content *bmp; nserror error; diff --git a/content/handlers/image/gif.c b/content/handlers/image/gif.c index fa09f401c..6ef4fa7e7 100644 --- a/content/handlers/image/gif.c +++ b/content/handlers/image/gif.c @@ -43,7 +43,9 @@ #include "netsurf/bitmap.h" #include "netsurf/content.h" #include "content/llcache.h" +#include "content/content.h" #include "content/content_protected.h" +#include "content/content_factory.h" #include "desktop/gui_internal.h" #include "image/image.h" diff --git a/content/handlers/image/ico.c b/content/handlers/image/ico.c index fdaff829a..312127869 100644 --- a/content/handlers/image/ico.c +++ b/content/handlers/image/ico.c @@ -32,6 +32,7 @@ #include "netsurf/content.h" #include "content/llcache.h" #include "content/content_protected.h" +#include "content/content_factory.h" #include "desktop/gui_internal.h" #include "image/image.h" diff --git a/content/handlers/image/jpeg.c b/content/handlers/image/jpeg.c index 9df084b74..09e68fd29 100644 --- a/content/handlers/image/jpeg.c +++ b/content/handlers/image/jpeg.c @@ -33,7 +33,9 @@ #include "utils/messages.h" #include "netsurf/bitmap.h" #include "content/llcache.h" +#include "content/content.h" #include "content/content_protected.h" +#include "content/content_factory.h" #include "desktop/gui_internal.h" #include "image/image_cache.h" diff --git a/content/handlers/image/png.c b/content/handlers/image/png.c index cf8e780d6..1fa707d35 100644 --- a/content/handlers/image/png.c +++ b/content/handlers/image/png.c @@ -29,6 +29,7 @@ #include "netsurf/bitmap.h" #include "content/llcache.h" #include "content/content_protected.h" +#include "content/content_factory.h" #include "desktop/gui_internal.h" #include "image/image_cache.h" diff --git a/content/handlers/image/rsvg.c b/content/handlers/image/rsvg.c index c7cb6257e..5cf900dac 100644 --- a/content/handlers/image/rsvg.c +++ b/content/handlers/image/rsvg.c @@ -49,6 +49,7 @@ #include "netsurf/content.h" #include "content/llcache.h" #include "content/content_protected.h" +#include "content/content_factory.h" #include "desktop/gui_internal.h" #include "image/rsvg.h" diff --git a/content/handlers/image/svg.c b/content/handlers/image/svg.c index 6194389bf..895d799df 100644 --- a/content/handlers/image/svg.c +++ b/content/handlers/image/svg.c @@ -34,6 +34,7 @@ #include "netsurf/plotters.h" #include "netsurf/content.h" #include "content/content_protected.h" +#include "content/content_factory.h" #include "image/svg.h" |