Add:Core:Added signatures for zipfile components
[navit-package] / navit / zipfile.h
1 /**
2  * Navit, a modular navigation system.
3  * Copyright (C) 2005-2008 Navit Team
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public License
7  * version 2 as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA  02110-1301, USA.
18  */
19
20 #ifndef __ZIPFILE_H__
21
22 #define zip_lfh_sig 0x04034b50
23
24 struct zip_lfh {
25         int ziplocsig;
26         short zipver;
27         short zipgenfld;
28         short zipmthd;
29         short ziptime;
30         short zipdate;
31         int zipcrc;
32         unsigned int zipsize;
33         unsigned int zipuncmp;
34         unsigned short zipfnln;
35         unsigned short zipxtraln;
36         char zipname[0];
37 } __attribute__ ((packed));
38
39 #define zip_cd_sig 0x2014b50
40
41 struct zip_cd {
42         int zipcensig;
43         char zipcver;
44         char zipcos;
45         char zipcvxt;
46         char zipcexos;
47         short zipcflg;
48         short zipcmthd;
49         short ziptim;
50         short zipdat;
51         int zipccrc;
52         unsigned int zipcsiz;
53         unsigned int zipcunc;
54         unsigned short zipcfnl;
55         unsigned short zipcxtl;
56         unsigned short zipccml;
57         unsigned short zipdsk;
58         unsigned short zipint;
59         unsigned int zipext;
60         unsigned int zipofst;
61         char zipcfn[0]; 
62 } __attribute__ ((packed));
63
64 #define zip_eoc_sig 0x6054b50
65
66 struct zip_eoc {
67         int zipesig;
68         unsigned short zipedsk;
69         unsigned short zipecen;
70         unsigned short zipenum;
71         unsigned short zipecenn;
72         unsigned int zipecsz;
73         unsigned int zipeofst;
74         short zipecoml;
75         char zipecom[0];
76 } __attribute__ ((packed));
77
78 #define __ZIPFILE_H__
79
80 #endif