]> git.r.bdr.sh - rbdr/mobius/blob - hotline/file_types.go
Implement multi-account edit
[rbdr/mobius] / hotline / file_types.go
1 package hotline
2
3 type fileType struct {
4 TypeCode string // 4 byte type code used in file transfers
5 CreatorCode string // 4 byte creator code used in file transfers
6 CreatorString string // variable length string used in file get info
7 FileTypeString string // variable length string used in file get info
8 }
9
10 var defaultFileType = fileType{
11 TypeCode: "TEXT",
12 CreatorCode: "TTXT",
13 }
14
15 var fileTypes = map[string]fileType{
16 "sit": {
17 TypeCode: "SIT!",
18 CreatorCode: "SIT!",
19 },
20 "pdf": {
21 TypeCode: "PDF ",
22 CreatorCode: "CARO",
23 },
24 "gif": {
25 TypeCode: "GIFf",
26 CreatorCode: "ogle",
27 },
28 "txt": {
29 TypeCode: "TEXT",
30 CreatorCode: "ttxt",
31 },
32 "zip": {
33 TypeCode: "ZIP ",
34 CreatorCode: "SITx",
35 },
36 "tgz": {
37 TypeCode: "Gzip",
38 CreatorCode: "SITx",
39 },
40 "hqx": {
41 TypeCode: "TEXT",
42 CreatorCode: "SITx",
43 },
44 "jpg": {
45 TypeCode: "JPEG",
46 CreatorCode: "ogle",
47 },
48 "img": {
49 TypeCode: "rohd",
50 CreatorCode: "ddsk",
51 },
52 "sea": {
53 TypeCode: "APPL",
54 CreatorCode: "aust",
55 },
56 "mov": {
57 TypeCode: "MooV",
58 CreatorCode: "TVOD",
59 },
60 "incomplete": { // Partial file upload
61 TypeCode: "HTft",
62 CreatorCode: "HTLC",
63 },
64 }