summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2005-12-10 14:31:33 +0000
committerAdrian Lees <adrian@aemulor.com>2005-12-10 14:31:33 +0000
commit1efd4796a26a034ac18428798794b2334633b524 (patch)
treec28655b59dcdf1d9d7f3cb2e8811cb9caba9ebc1 /content/content.c
parent32602f6ea90a2eb48b778dc5f6b8c170fc62b7c7 (diff)
downloadnetsurf-1efd4796a26a034ac18428798794b2334633b524.tar.gz
netsurf-1efd4796a26a034ac18428798794b2334633b524.tar.bz2
[project @ 2005-12-10 14:31:32 by adrianl]
ArtWorks support svn path=/import/netsurf/; revision=1891
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index 9259e952d..f27a79b93 100644
--- a/content/content.c
+++ b/content/content.c
@@ -45,6 +45,9 @@
#ifdef WITH_PLUGIN
#include "netsurf/riscos/plugin.h"
#endif
+#ifdef WITH_ARTWORKS
+#include "netsurf/riscos/artworks.h"
+#endif
#include "netsurf/utils/log.h"
#include "netsurf/utils/messages.h"
#include "netsurf/utils/talloc.h"
@@ -62,6 +65,9 @@ struct mime_entry {
};
/** A map from MIME type to ::content_type. Must be sorted by mime_type. */
static const struct mime_entry mime_map[] = {
+#ifdef WITH_ARTWORKS
+ {"application/artworks", CONTENT_ARTWORKS},
+#endif
#ifdef WITH_DRAW
{"application/drawfile", CONTENT_DRAW},
{"application/x-drawfile", CONTENT_DRAW},
@@ -70,6 +76,9 @@ static const struct mime_entry mime_map[] = {
{"application/x-netsurf-theme", CONTENT_THEME},
#endif
{"application/xhtml+xml", CONTENT_HTML},
+#ifdef WITH_ARTWORKS
+ {"image/artworks", CONTENT_ARTWORKS},
+#endif
#ifdef WITH_DRAW
{"image/drawfile", CONTENT_DRAW},
#endif
@@ -138,6 +147,9 @@ const char *content_type_name[] = {
#ifdef WITH_THEME_INSTALL
"THEME",
#endif
+#ifdef WITH_ARTWORKS
+ "ARTWORKS",
+#endif
"OTHER",
"UNKNOWN"
};
@@ -213,6 +225,10 @@ static const struct handler_entry handler_map[] = {
#ifdef WITH_THEME_INSTALL
{0, 0, 0, 0, 0, 0, 0, 0, 0, false},
#endif
+#ifdef WITH_ARTWORKS
+ {0, 0, artworks_convert,
+ 0, artworks_destroy, 0, artworks_redraw, 0, 0, false},
+#endif
{0, 0, 0, 0, 0, 0, 0, 0, 0, false}
};
#define HANDLER_MAP_COUNT (sizeof(handler_map) / sizeof(handler_map[0]))