Added source files for our MIME database. The files are in rdef format,

specifying resources. They are converted via rc to resource files and
those in turn via resattr to empty files with attributes.
Ideally rc would understand attributes, too...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10786 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2005-01-17 01:31:35 +00:00
parent 8dbd1340a3
commit d20352d8b2
19 changed files with 326 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "application";
+8
View File
@@ -0,0 +1,8 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "application/pdf";
resource(2, "META:SNIFF_RULE") "0.50 (\"%PDF\")";
resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.mp-xpdf";
+14
View File
@@ -0,0 +1,14 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "application/zip";
resource(2, "META:SNIFF_RULE") "0.40 (\"PK\\003\\004\")";
resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.obos-Expander";
resource(4, "META:EXTENS") message(234)
{
"extensions" = "zip",
"type" = "application/zip"
};
+34
View File
@@ -0,0 +1,34 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "audio";
resource(2, "META:L:DESC") #'MLDC' "generic audio";
resource(3, "META:S:DESC") #'MSDC' "generic audio";
resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.videolan-vlc";
resource(5, "META:EXTENS") message(234)
{
"type" = "audio"
};
resource(6, "META:ATTR_INFO") message(233)
{
"attr:name" = "Audio:Length",
"attr:name" = "Audio:Bitrate",
"attr:public_name" = "Playing time",
"attr:public_name" = "Bitrate",
"attr:type" = 'CSTR',
"attr:type" = 'CSTR',
"attr:viewable" = true,
"attr:viewable" = true,
"attr:editable" = false,
"attr:editable" = false,
"attr:width" = 60,
"attr:width" = 50,
"attr:alignment" = 1,
"attr:alignment" = 1,
"type" = "audio"
};
+15
View File
@@ -0,0 +1,15 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "audio/wav";
resource(2, "META:S:DESC") #'MSDC' "WAVE Sound File";
resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.videolan-vlc";
resource(4, "META:EXTENS") message(234)
{
"extensions" = "wav",
"type" = "audio/wav"
};
+106
View File
@@ -0,0 +1,106 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "audio/x-mpeg";
resource(3, "META:L:DESC") #'MLDC' "MPEG audio file";
resource(4, "META:S:DESC") #'MSDC' "MPEG audio file";
resource(5, "META:PREF_APP") #'MSIG' "application/x-vnd.videolan-vlc";
resource(6, "META:EXTENS") message(234)
{
"extensions" = "mp2",
"extensions" = "MP2",
"extensions" = "mp3",
"extensions" = "MP3",
"type" = "audio/x-mpeg"
};
resource(7, "META:ATTR_INFO") message(233)
{
"attr:name" = "Audio:Artist",
"attr:name" = "Audio:Title",
"attr:name" = "Audio:Album",
"attr:name" = "Audio:Track",
"attr:name" = "Audio:Year",
"attr:name" = "Audio:Comment",
"attr:name" = "Audio:Genre",
"attr:name" = "Audio:Rating",
"attr:name" = "Audio:Length",
"attr:name" = "Audio:Bitrate",
"attr:public_name" = "Artist",
"attr:public_name" = "Title",
"attr:public_name" = "Album",
"attr:public_name" = "Track",
"attr:public_name" = "Year",
"attr:public_name" = "Comment",
"attr:public_name" = "Genre",
"attr:public_name" = "Rating",
"attr:public_name" = "Playing time",
"attr:public_name" = "Bitrate",
"attr:type" = 'CSTR',
"attr:type" = 'CSTR',
"attr:type" = 'CSTR',
"attr:type" = 'LONG',
"attr:type" = 'LONG',
"attr:type" = 'CSTR',
"attr:type" = 'CSTR',
"attr:type" = 'LONG',
"attr:type" = 'CSTR',
"attr:type" = 'CSTR',
"attr:viewable" = true,
"attr:viewable" = true,
"attr:viewable" = true,
"attr:viewable" = true,
"attr:viewable" = true,
"attr:viewable" = true,
"attr:viewable" = true,
"attr:viewable" = true,
"attr:viewable" = true,
"attr:viewable" = true,
"attr:editable" = true,
"attr:editable" = true,
"attr:editable" = true,
"attr:editable" = true,
"attr:editable" = true,
"attr:editable" = true,
"attr:editable" = true,
"attr:editable" = true,
"attr:editable" = false,
"attr:editable" = false,
"attr:extra" = false,
"attr:extra" = false,
"attr:extra" = false,
"attr:extra" = false,
"attr:extra" = false,
"attr:extra" = false,
"attr:extra" = false,
"attr:extra" = false,
"attr:extra" = false,
"attr:extra" = false,
"attr:width" = 30,
"attr:width" = 30,
"attr:width" = 30,
"attr:width" = 30,
"attr:width" = 30,
"attr:width" = 40,
"attr:width" = 30,
"attr:width" = 15,
"attr:width" = 60,
"attr:width" = 50,
"attr:alignment" = 0,
"attr:alignment" = 0,
"attr:alignment" = 0,
"attr:alignment" = 0,
"attr:alignment" = 0,
"attr:alignment" = 0,
"attr:alignment" = 0,
"attr:alignment" = 0,
"attr:alignment" = 1,
"attr:alignment" = 1,
"type" = "audio/x-mpeg",
"type" = "audio/x-mpeg"
};
+6
View File
@@ -0,0 +1,6 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "image";
resource(2, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage";
+16
View File
@@ -0,0 +1,16 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "image/gif";
resource(2, "META:SNIFF_RULE") "0.70 (\"GIF8\")";
resource(3, "META:S:DESC") #'MSDC' "GIF Image";
resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage";
resource(5, "META:EXTENS") message(234)
{
"extensions" = "gif",
"type" = "image/gif"
};
+17
View File
@@ -0,0 +1,17 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "image/jpeg";
resource(2, "META:SNIFF_RULE") "0.50 (\"\\377\\330\\377\")";
resource(3, "META:S:DESC") #'MSDC' "JPEG Image";
resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage";
resource(5, "META:EXTENS") message(234)
{
"extensions" = "jpeg",
"extensions" = "jpg",
"type" = "image/jpeg"
};
+8
View File
@@ -0,0 +1,8 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "image/png";
resource(2, "META:SNIFF_RULE") "0.70 (\"\\211PNG\\015\\012\\032\\012\")";
resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage";
+4
View File
@@ -0,0 +1,4 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "message";
+6
View File
@@ -0,0 +1,6 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "message/rfc822";
resource(2, "META:PREF_APP") #'MSIG' "application/x-vnd.Be-MAIL";
+4
View File
@@ -0,0 +1,4 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "multipart";
+6
View File
@@ -0,0 +1,6 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "text";
resource(2, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.styled-edit";
+22
View File
@@ -0,0 +1,22 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "text/html";
resource(2, "META:SNIFF_RULE") #'CSTR' array
{
"0.40 [0:64]( -i \"<HTML\" | \"<HEAD\" | \"<TITLE\" | \""
"<BODY\" | \"<TABLE\" | \"<!--\" | \"<META\" | \"<CENTER\")"
};
resource(3, "META:S:DESC") #'MSDC' "HTML File";
resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.Be-NPOS";
resource(5, "META:EXTENS") message(234)
{
"extensions" = "htm",
"extensions" = "html",
"type" = "text/html"
};
+14
View File
@@ -0,0 +1,14 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "text/plain";
resource(2, "META:S:DESC") #'MSDC' "Text File";
resource(3, "META:EXTENS") message(234)
{
"extensions" = "txt",
"type" = "text/plain"
};
resource(6, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.styled-edit";
+26
View File
@@ -0,0 +1,26 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "text/x-source-code";
resource(2, "META:SNIFF_RULE") #'CSTR' array
{
"0.20 ([0]\"//\" | [0]\"/*\" | [0:32]\"#include\" | [0:3"
"2]\"#ifndef\" | [0:32]\"#ifdef\")"
};
resource(3, "META:S:DESC") #'MSDC' "Source Code";
resource(4, "META:EXTENS") message(234)
{
"extensions" = "c",
"extensions" = "cc",
"extensions" = "cpp",
"extensions" = "h",
"extensions" = "h++",
"extensions" = "pl",
"extensions" = "py",
"type" = "text/x-source-code"
};
resource(5, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.styled-edit";
+6
View File
@@ -0,0 +1,6 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "video";
resource(2, "META:PREF_APP") #'MSIG' "application/x-vnd.videolan-vlc";
+10
View File
@@ -0,0 +1,10 @@
resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "video/mpeg";
resource(2, "META:SNIFF_RULE") "0.50 (\"\\000\\000\\001\\272\" | \"\\000\\000\\001\\263";
resource(3, "META:S:DESC") #'MSDC' "MPEG Movie";
resource(6, "META:PREF_APP") #'MSIG' "application/x-vnd.videolan-vlc";