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 6#include <sys/types.h> 7 8struct ext_mime { 9 char *extension; 10 char *mime; 11}; 12 13struct ext_mime mimes[] = { 14 { "gz", "application/x-gzip" }, 15 { "hqx", "application/x-binhex40" }, 16 { "lha", "application/x-lharc" }, 17 { "pcl", "application/x-pcl" }, 18 { "pdf", "application/pdf" }, 19 { "ps", "application/postscript" }, 20 { "sit", "application/x-stuff-it" }, 21 { "tar", "application/x-tar" }, 22 { "tgz", "application/x-gzip" }, 23 { "uue", "application/x-uuencode" }, 24 { "z", "application/x-compress" }, 25 { "zip", "application/zip" }, 26 { "zoo", "application/x-zoo" }, 27 { "rar", "application/x-rar" }, 28 { "pkg", "application/x-scode-UPkg" }, 29 { "7z", "application/x-7z-compressed" }, 30 { "bz2", "application/x-bzip2" }, 31 { "xz", "application/x-xz" }, 32 33 { "jar", "application/x-jar" }, 34 35 { "aif", "audio/x-aiff" }, 36 { "aiff", "audio/x-aiff" }, 37 { "au", "audio/basic" }, 38 { "mid", "audio/x-midi" }, 39 { "midi", "audio/x-midi" }, 40 { "mod", "audio/mod" }, 41 { "ra", "audio/x-real-audio" }, 42 { "wav", "audio/x-wav" }, 43 { "mp3", "audio/x-mpeg" }, 44 { "ogg", "audio/x-vorbis" }, 45 { "flac", "audio/x-flac" }, 46 { "wma", "audio/x-ms-wma" }, 47 48 { "avi", "video/x-msvideo" }, 49 { "mov", "video/quicktime" }, 50 { "qt", "video/quicktime" }, 51 { "mpg", "video/mpeg" }, 52 { "mpeg", "video/mpeg" }, 53 { "flv", "video/x-flv" }, 54 { "mp4", "video/mp4" }, 55 { "mkv", "video/x-matroska" }, 56 { "asf", "application/x-asf" }, 57 { "rm", "video/vnd.rn-realvideo" }, 58 { "wmv", "video/x-ms-wmv" }, 59 60 { "bmp", "image/x-bmp" }, 61 { "fax", "image/g3fax" }, 62 { "gif", "image/gif" }, 63 { "iff", "image/x-iff" }, 64 { "jpg", "image/jpeg" }, 65 { "jpeg", "image/jpeg" }, 66 { "pbm", "image/x-portable-bitmap" }, 67 { "pcx", "image/x-pcx" }, 68 { "pgm", "image/x-portable-graymap" }, 69 { "png", "image/png" }, 70 { "ppm", "image/x-portable-pixmap" }, 71 { "rgb", "image/x-rgb" }, 72 { "tga", "image/x-targa" }, 73 { "tif", "image/tiff" }, 74 { "tiff", "image/tiff" }, 75 { "xbm", "image/x-xbitmap" }, 76 { "djvu", "image/x-djvu" }, 77 { "svg", "image/svg+xml" }, 78 { "ico", "image/vnd.microsoft.icon" }, 79 80 { "doc", "application/msword" }, 81 { "xls", "application/vnd.ms-excel" }, 82 { "xls", "application/vnd.ms-excel" }, 83 { "xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }, 84 { "docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document" }, 85 { "ppt", "application/vnd.ms-powerpoint" }, 86 { "pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation" }, 87 { "chm", "application/x-chm" }, 88 89 { "txt", "text/plain" }, 90 { "xml", "text/plain" }, 91 { "htm", "text/html" }, 92 { "html", "text/html" }, 93 { "rtf", "text/rtf" }, 94 { "c", "text/x-source-code" }, 95 { "cc", "text/x-source-code" }, 96 { "c++", "text/x-source-code" }, 97 { "h", "text/x-source-code" }, 98 { "hh", "text/x-source-code" }, 99 { "hpp", "text/x-source-code" }, 100 { "cxx", "text/x-source-code" }, 101 { "cpp", "text/x-source-code" }, 102 { "S", "text/x-source-code" }, 103 { "java", "text/x-source-code" }, 104 { "ini", "text/plain" }, 105 { "inf", "text/plain" }, 106 107 { "ttf", "application/x-truetype" }, 108 109 { NULL, NULL } 110}; 111