summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index dacb46df8..d7dd52515 100644
--- a/content/content.c
+++ b/content/content.c
@@ -30,6 +30,9 @@
#ifdef WITH_PNG
#include "netsurf/riscos/png.h"
#endif
+#ifdef WITH_MNG
+#include "netsurf/riscos/mng.h"
+#endif
#ifdef WITH_GIF
#include "netsurf/riscos/gif.h"
#endif
@@ -73,6 +76,14 @@ static const struct mime_entry mime_map[] = {
#ifdef WITH_PNG
{"image/png", CONTENT_PNG},
#endif
+#ifdef WITH_MNG
+ {"image/jng", CONTENT_JNG},
+ {"image/x-jng", CONTENT_JNG},
+ {"image/mng", CONTENT_MNG},
+ {"image/x-mng", CONTENT_MNG},
+ {"video/mng", CONTENT_MNG},
+ {"video/x-mng", CONTENT_MNG},
+#endif
#ifdef WITH_DRAW
{"image/x-drawfile", CONTENT_DRAW},
#endif
@@ -98,6 +109,9 @@ const char *content_type_name[] = {
#ifdef WITH_PNG
"PNG",
#endif
+#ifdef WITH_MNG
+ "MNG",
+#endif
#ifdef WITH_SPRITE
"SPRITE",
#endif
@@ -162,6 +176,10 @@ static const struct handler_entry handler_map[] = {
{nspng_create, nspng_process_data, nspng_convert,
0, nspng_destroy, 0, nspng_redraw, 0, 0, 0},
#endif
+#ifdef WITH_MNG
+ {nsmng_create, nsmng_process_data, nsmng_convert,
+ 0, nsmng_destroy, 0, nsmng_redraw, 0, 0, 0},
+#endif
#ifdef WITH_SPRITE
{sprite_create, sprite_process_data, sprite_convert,
0, sprite_destroy, 0, sprite_redraw, 0, 0, 0},