xref: /haiku/src/add-ons/kernel/generic/mime_table/mime_table.c (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1 /*
2 	Copyright 1999-2001, Be Incorporated.   All Rights Reserved.
3 	This file may be used under the terms of the Be Sample Code License.
4 
5 	extended: 2001-12-11 by Marcus Overhagen
6 */
7 
8 #include <mime_table.h>
9 
10 struct ext_mime mimes[] = {
11 	{ "gz", "application/x-gzip" },
12 	{ "hqx", "application/x-binhex40" },
13 	{ "lha", "application/x-lharc" },
14 	{ "lzh", "application/x-lharc" },
15 	{ "pcl", "application/x-pcl" },
16 	{ "pdf", "application/pdf" },
17 	{ "ps", "application/postscript" },
18 	{ "sit", "application/x-stuff-it" },
19 	{ "tar", "application/x-tar" },
20 	{ "tgz", "application/x-gzip" },
21 	{ "uue", "application/x-uuencode" },
22 	{ "z", "application/x-compress" },
23 	{ "zip", "application/zip" },
24 	{ "zoo", "application/x-zoo" },
25 	{ "pkg", "application/x-scode-UPkg" },
26 	{ "vdwn", "application/x-scode-UPkg" },
27 	{ "proj", "application/x-mw-project" },
28 	{ "swf", "application/x-shockwave-flash" },
29 	{ "clp", "application/x-codeliege-project" },
30 
31 	{ "aif", "audio/x-aiff" },
32 	{ "aifc", "audio/x-aifc" },
33 	{ "aiff", "audio/x-aiff" },
34 	{ "au", "audio/basic" },
35 	{ "mid", "audio/x-midi" },
36 	{ "midi", "audio/x-midi" },
37 	{ "mod", "audio/mod" },
38 	{ "ra", "audio/x-real-audio" },
39 	{ "wav", "audio/x-wav" },
40 	{ "mp2", "audio/x-mpeg" },
41 	{ "mp3", "audio/x-mpeg" },
42 	{ "ogg", "audio/x-vorbis" },
43 	{ "mpc", "audio/x-mpc" },
44 	{ "asf", "application/x-asf" },
45 	{ "riff", "application/x-riff" },
46 	{ "wma", "audio/x-ms-wma" },
47 
48 	{ "bmp", "image/x-bmp" },
49 	{ "fax", "image/g3fax" },
50 	{ "gif", "image/gif" },
51 	{ "iff", "image/x-iff" },
52 	{ "jpg", "image/jpeg" },
53 	{ "jpeg", "image/jpeg" },
54 	{ "pbm", "image/x-portable-bitmap" },
55 	{ "pcx", "image/x-pcx" },
56 	{ "pgm", "image/x-portable-graymap" },
57 	{ "png", "image/png" },
58 	{ "ppm", "image/x-portable-pixmap" },
59 	{ "rgb", "image/x-rgb" },
60 	{ "tga", "image/x-targa" },
61 	{ "tif", "image/tiff" },
62 	{ "tiff", "image/tiff" },
63 	{ "xbm", "image/x-xbitmap" },
64 
65 	{ "txt", "text/plain" },
66 	{ "ini", "text/plain" },
67 	{ "log", "text/plain" },
68 	{ "bat", "text/plain" },
69 	{ "doc", "text/plain" },
70 	{ "cfg", "text/plain" },
71 	{ "inf", "text/plain" },
72 	{ "htm", "text/html" },
73 	{ "html", "text/html" },
74 	{ "rtf", "text/rtf" },
75 	{ "c", "text/x-source-code" },
76 	{ "cc", "text/x-source-code" },
77 	{ "c++", "text/x-source-code" },
78 	{ "h", "text/x-source-code" },
79 	{ "h++", "text/x-source-code" },
80 	{ "hh", "text/x-source-code" },
81 	{ "hpp", "text/x-source-code" },
82 	{ "pl", "text/x-source-code" },
83 	{ "py", "text/x-source-code" },
84 	{ "cxx", "text/x-source-code" },
85 	{ "cpp", "text/x-source-code" },
86 	{ "S", "text/x-source-code" },
87 	{ "asm", "text/x-source-code" },
88 	{ "bas", "text/x-source-code" },
89 	{ "pas", "text/x-source-code" },
90 	{ "java", "text/x-source-code" },
91 
92 	{ "avi", "video/x-msvideo" },
93 	{ "mov", "video/quicktime" },
94 	{ "mpg", "video/mpeg" },
95 	{ "mpeg", "video/mpeg" },
96 	{ "ogm", "video/x-ogm" },
97 	{ "wmv", "video/x-ms-wmv" },
98 	{ "rm", "application/vnd.rn-realmedia" },
99 	{ "rn", "application/vnd.rn-realmedia" },
100 
101 	{ 0, 0 }
102 };
103