diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-06-06 22:27:10 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-06-06 22:27:10 +0000 |
commit | dee3127d79b3d27ccb69e729a616f5a68c441639 (patch) | |
tree | 1a36ad868f1cf3f28538279653e2b908d17b2a6b /amiga | |
parent | baf3b8e0f359ec6d6ea7e2c0a366ed175d08dbdb (diff) | |
download | netsurf-dee3127d79b3d27ccb69e729a616f5a68c441639.tar.gz netsurf-dee3127d79b3d27ccb69e729a616f5a68c441639.tar.bz2 |
Don't modify the DataType name within the structure.
Update mimetypes file a bit, add some more descriptive text.
svn path=/trunk/netsurf/; revision=12467
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/filetype.c | 3 | ||||
-rw-r--r-- | amiga/resources/mimetypes | 47 |
2 files changed, 43 insertions, 7 deletions
diff --git a/amiga/filetype.c b/amiga/filetype.c index c1ab65914..bdc273365 100644 --- a/amiga/filetype.c +++ b/amiga/filetype.c @@ -362,7 +362,8 @@ APTR ami_mime_guess_add_datatype(struct DataType *dt, lwc_string **lwc_mimetype) if (lerror != lwc_error_ok) return NULL; - dt_name_lwr = strlwr(dth->dth_Name); + dt_name_lwr = strdup(dth->dth_Name); + strlwr(dt_name_lwr); p = dt_name_lwr; while(*p != '\0') diff --git a/amiga/resources/mimetypes b/amiga/resources/mimetypes index 800f422b6..7a7aae650 100644 --- a/amiga/resources/mimetypes +++ b/amiga/resources/mimetypes @@ -1,13 +1,27 @@ ; This file contains a list of MIME types that can be handled by NetSurf, ; mapping them to DataType and DefIcons format names. +; ; It is parsed by ReadArgs with the following template: ; MIMETYPE/A,DT=DATATYPE/K,TYPE=DEFICON/K,CMD=PLUGINCMD/K +; +; Note: DataType name is case sensitive and is the name MultiView +; displays in the "About" window, *not* the filename of the DataType +; descriptor. +; +; The first entry for a type is the one which will be used for reverse +; lookups (ie. translating from DataTypes to MIME) +; +; Any DataTypes installed that are not present in this list will be +; assigned a MIME type constructed from the DataTypes superclass +; and a lowercase version of the full format name (eg. ILBM becomes +; image/ilbm) + + +; +; Image types +; ; BMP -application/bmp DT=BMP TYPE=bmp -application/preview DT=BMP TYPE=bmp -application/x-bmp DT=BMP TYPE=bmp -application/x-win-bitmap DT=BMP TYPE=bmp image/bmp DT=BMP TYPE=bmp image/ms-bmp DT=BMP TYPE=bmp image/x-bitmap DT=BMP TYPE=bmp @@ -16,6 +30,10 @@ image/x-ms-bmp DT=BMP TYPE=bmp image/x-win-bitmap DT=BMP TYPE=bmp image/x-windows-bmp DT=BMP TYPE=bmp image/x-xbitmap DT=BMP TYPE=bmp +application/bmp DT=BMP TYPE=bmp +application/preview DT=BMP TYPE=bmp +application/x-bmp DT=BMP TYPE=bmp +application/x-win-bitmap DT=BMP TYPE=bmp ; GIF ; Expect problems with GIF anims if GIFANIM datatype installed @@ -23,11 +41,11 @@ image/gif DT=GIF TYPE=gif ;image/gif DT=GIFANIM TYPE=gif ; ICO -application/ico DT=ICO TYPE=ico -application/x-ico DT=ICO TYPE=ico image/ico DT=ICO TYPE=ico image/vnd.microsoft.icon DT=ICO TYPE=ico image/x-icon DT=ICO TYPE=ico +application/ico DT=ICO TYPE=ico +application/x-ico DT=ICO TYPE=ico ; .info image/x-amiga-icon DT=INFO @@ -64,7 +82,24 @@ image/svg+xml DT=SVG TYPE=svg ; WebP image/webp DT=WebP TYPE=webp + +; +; Audio types +; + +; RIFF WAVE +audio/x-wav DT=WAVE TYPE=wav + +; MP3 +audio/mpeg DT=MPEG Audio TYPE=mp3 + + ; ; Experimental ; application/x-shockwave-flash CMD=gnash:aos4-gnash + +; video/mpeg CMD=APPDIR:MPlayer +; video/quicktime CMD=APPDIR:MPlayer +; video/x-msvideo CMD=APPDIR:MPlayer +; video/x-ms-wmv CMD=APPDIR:MPlayer |