diff options
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 16 |
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])) |