File: cstruct.h

package info (click to toggle)
lcab 1.0b10-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 656 kB
  • ctags: 99
  • sloc: sh: 3,158; ansic: 687; makefile: 57
file content (66 lines) | stat: -rw-r--r-- 1,432 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*  Copyright 2001 Rien Croonenborghs, Ben Kibbey, Shaun Jackman

    This file is part of lcab.
    lcab is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    lcab is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with lcab; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef MYTYPESH
#include "mytypes.h"
#endif

#ifndef CSTRUCTH
#define CSTRUCTH

struct cheader
{
	byte sig[4];			
	dword res1;				
	dword size;			
	dword res2;				
	dword offsetfiles;		
	dword res3;				
	byte versionMIN;	
	byte versionMAJ;		
	word nfolders;			
	word nfiles;			
	word flags;				
	word setID;			
	word cabID;				
};

struct cfolder
{
	dword offsetdata;		
	word ndatab;			
	word typecomp;			
};

struct cfile
{
	dword usize;			
	dword uoffset;			
	word index;				
	word date;				
	word time;				
	word fattr;				
	byte name[MAXSIZE];		
};

struct cdata
{
	dword checksum;			
	word ncbytes;			
	word nubytes;			
};

#endif