summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-10-30 14:23:38 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-10-30 14:23:38 +0000
commit835d033e7b0c37883c05ab0c66086d089ababd26 (patch)
tree8a305d608aec7b06768ef46b9116c111ae38ae1d /content/content.c
parent22c31c63492ed051faf7b313158b8466d4812ce1 (diff)
downloadnetsurf-835d033e7b0c37883c05ab0c66086d089ababd26.tar.gz
netsurf-835d033e7b0c37883c05ab0c66086d089ababd26.tar.bz2
Amiga icon loader. Treeviews will now use the user's icons for content types.
svn path=/trunk/netsurf/; revision=10925
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index 9a8336287..36b39b3ca 100644
--- a/content/content.c
+++ b/content/content.c
@@ -80,6 +80,9 @@
#ifdef WITH_WEBP
#include "image/webp.h"
#endif
+#ifdef WITH_AMIGA_ICON
+#include "amiga/icon.h"
+#endif
#include "utils/http.h"
#include "utils/log.h"
#include "utils/messages.h"
@@ -159,6 +162,9 @@ static const struct mime_entry mime_map[] = {
#ifdef WITH_WEBP
{"image/webp", CONTENT_WEBP},
#endif
+#ifdef WITH_AMIGA_ICON
+ {"image/x-amiga-icon", CONTENT_AMIGA_ICON},
+#endif
#ifdef WITH_ARTWORKS
{"image/x-artworks", CONTENT_ARTWORKS},
#endif
@@ -240,6 +246,9 @@ const char * const content_type_name[] = {
#ifdef WITH_WEBP
"WEBP",
#endif
+#ifdef WITH_AMIGA_ICON
+ "AMIGA_ICON",
+#endif
"OTHER",
"UNKNOWN"
};
@@ -374,6 +383,11 @@ static const struct handler_entry handler_map[] = {
0, webp_destroy, 0, 0, 0, webp_redraw, 0,
0, 0, webp_clone, false},
#endif
+#ifdef WITH_WEBP
+ {0, 0, amiga_icon_convert,
+ 0, amiga_icon_destroy, 0, 0, 0, amiga_icon_redraw, 0,
+ 0, 0, amiga_icon_clone, false},
+#endif
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false}
};
#define HANDLER_MAP_COUNT (sizeof(handler_map) / sizeof(handler_map[0]))