summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-05-09 22:11:18 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-05-09 22:11:18 +0000
commit1f1fe78c17da956739061eee22fc91d6e40fb85a (patch)
tree6ec5888b424b15f420059b9f7887b7f7c67d9156 /amiga/gui.c
parent3276ce5db94774c1afa3e6683f706023551a2dd8 (diff)
downloadnetsurf-1f1fe78c17da956739061eee22fc91d6e40fb85a.tar.gz
netsurf-1f1fe78c17da956739061eee22fc91d6e40fb85a.tar.bz2
New style MIME typing; maps MIME types to DataTypes and DefIcon format names.
Currently only able to resolve DataTypes to MIME Types. TODO: - DT MIME type guessing needs mostly removing (only use if no matches in mimetypes file) - Migrate the rest of filetype.c to the new format (can filetype using icon.library and reverse lookup MIME type, for example) - Use to distinguish between CONTENT_IMAGE types - Simplify so DefIcon type defaults to lowercase DataType name svn path=/trunk/netsurf/; revision=12360
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 630b7b1ff..80847cbcd 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -58,6 +58,7 @@
#include "amiga/misc.h"
#include "amiga/options.h"
#include "amiga/plotters.h"
+#include "amiga/plugin_hack.h"
#include "amiga/print.h"
#include "amiga/schedule.h"
#include "amiga/search.h"
@@ -751,9 +752,11 @@ int main(int argc, char** argv)
if(ami_locate_resource(messages, "Messages") == false)
die("Cannot open Messages file");
+ ami_mime_init("PROGDIR:Resources/mimetypes");
ami_schedule_open_timer();
ami_schedule_create();
+ amiga_plugin_hack_init();
amiga_datatypes_init();
netsurf_init(&argc, &argv, "PROGDIR:Resources/Options", messages);
@@ -777,9 +780,12 @@ int main(int argc, char** argv)
netsurf_exit();
+ amiga_plugin_hack_fini();
amiga_datatypes_fini();
amiga_icon_fini();
+ ami_mime_free();
+
return 0;
}