diff options
author | James Bursa <james@netsurf-browser.org> | 2003-02-25 21:00:27 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-02-25 21:00:27 +0000 |
commit | 8edb43af7dbf0b28892f9d8a8d8ddae523e41b73 (patch) | |
tree | f83c7ed22bfac320b468979e181630e7ebc6dfe4 /content/content.c | |
parent | 9209f8e6cbd2423a243dcab05bbff2e41d193d3f (diff) | |
download | netsurf-8edb43af7dbf0b28892f9d8a8d8ddae523e41b73.tar.gz netsurf-8edb43af7dbf0b28892f9d8a8d8ddae523e41b73.tar.bz2 |
[project @ 2003-02-25 21:00:27 by bursa]
Bug fixes, experimental JPEG support.
svn path=/import/netsurf/; revision=100
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/content.c b/content/content.c index c8601400d..1b75f14ae 100644 --- a/content/content.c +++ b/content/content.c @@ -1,5 +1,5 @@ /** - * $Id: content.c,v 1.1 2003/02/09 12:58:14 bursa Exp $ + * $Id: content.c,v 1.2 2003/02/25 21:00:27 bursa Exp $ */ #include <assert.h> @@ -8,6 +8,7 @@ #include "netsurf/content/content.h" #include "netsurf/render/html.h" #include "netsurf/render/textplain.h" +#include "netsurf/riscos/jpeg.h" #include "netsurf/utils/utils.h" @@ -17,6 +18,7 @@ struct mime_entry { content_type type; }; static const struct mime_entry mime_map[] = { + {"image/jpeg", CONTENT_JPEG}, /* {"image/png", CONTENT_PNG}, {"text/css", CONTENT_CSS},*/ {"text/html", CONTENT_HTML}, @@ -37,6 +39,7 @@ static const struct handler_entry handler_map[] = { {html_create, html_process_data, html_convert, html_revive, html_reformat, html_destroy}, {textplain_create, textplain_process_data, textplain_convert, textplain_revive, textplain_reformat, textplain_destroy}, + {jpeg_create, jpeg_process_data, jpeg_convert, jpeg_revive, jpeg_destroy}, /* {css_create, css_process_data, css_convert, css_revive, css_destroy}, {png_create, png_process_data, png_convert, png_revive, png_destroy},*/ }; |