diff options
author | Adrian Lees <adrian@aemulor.com> | 2005-12-10 14:31:33 +0000 |
---|---|---|
committer | Adrian Lees <adrian@aemulor.com> | 2005-12-10 14:31:33 +0000 |
commit | 1efd4796a26a034ac18428798794b2334633b524 (patch) | |
tree | c28655b59dcdf1d9d7f3cb2e8811cb9caba9ebc1 /content | |
parent | 32602f6ea90a2eb48b778dc5f6b8c170fc62b7c7 (diff) | |
download | netsurf-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')
-rw-r--r-- | content/content.c | 16 | ||||
-rw-r--r-- | content/content.h | 6 | ||||
-rw-r--r-- | content/content_type.h | 3 |
3 files changed, 25 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])) diff --git a/content/content.h b/content/content.h index f71691fc7..897b81370 100644 --- a/content/content.h +++ b/content/content.h @@ -126,6 +126,9 @@ #ifdef WITH_DRAW #include "netsurf/riscos/draw.h" #endif +#ifdef WITH_ARTWORKS +#include "netsurf/riscos/artworks.h" +#endif struct bitmap; @@ -225,6 +228,9 @@ struct content { #ifdef WITH_PLUGIN struct content_plugin_data plugin; #endif +#ifdef WITH_ARTWORKS + struct content_artworks_data artworks; +#endif } data; /** Bitmap, for various image contents. */ diff --git a/content/content_type.h b/content/content_type.h index 4cbb49550..4760b9f9f 100644 --- a/content/content_type.h +++ b/content/content_type.h @@ -45,6 +45,9 @@ typedef enum { #ifdef WITH_THEME_INSTALL CONTENT_THEME, #endif +#ifdef WITH_ARTWORKS + CONTENT_ARTWORKS, +#endif /* these must be the last two */ CONTENT_OTHER, CONTENT_UNKNOWN /**< content-type not received yet */ |