ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Urlader/urlib.h
(Generate patch)

Comparing Urlader/urlib.h (file contents):
Revision 1.1 by root, Fri Dec 30 23:34:08 2011 UTC vs.
Revision 1.3 by root, Tue Jan 3 10:37:45 2012 UTC

7#define MAX_ARGC 32 /* maximum number of arguments */ 7#define MAX_ARGC 32 /* maximum number of arguments */
8#define MAX_ARGS 256 /* maximum TOTAL length of arguments */ 8#define MAX_ARGS 256 /* maximum TOTAL length of arguments */
9 9
10enum 10enum
11{ 11{
12 U_T_NULL, // 5 12 T_NULL, // 5
13 U_T_META, // 1 : exe_id, exe_ver 13 T_META, // 1 : exe_id, exe_ver
14 U_T_ENV, // 2 : name, value 14 T_ENV, // 2 : name, value
15 U_T_ARG, // 3 : arg 15 T_ARG, // 3 : arg
16 U_T_DIR, // 4+: path 16 T_DIR, // 4+: path
17 U_T_FILE, // 4+: path, data 17 T_FILE, // 4+: path, data
18 U_T_NUM 18 T_NUM
19}; 19};
20 20
21enum 21enum
22{ 22{
23 U_F_LZF = 0x01, 23 F_LZF = 0x01,
24 U_F_EXEC = 0x10, 24 F_EXEC = 0x10,
25 U_F_NULL = 0 25 F_NULL = 0
26}; 26};
27 27
28#define TAIL_MAGIC "sChMoRPAcK_0" 28#define TAIL_MAGIC "ScHmOrp_PaCk_000"
29 29
30struct u_pack_hdr 30struct u_pack_hdr
31{ 31{
32 unsigned char type; 32 unsigned char type;
33 unsigned char flags; 33 unsigned char flags;
37 37
38#define u_16(ptr) (((ptr)[0] << 8) | (ptr)[1]) 38#define u_16(ptr) (((ptr)[0] << 8) | (ptr)[1])
39#define u_32(ptr) (((ptr)[0] << 24) | ((ptr)[1] << 16) | ((ptr)[2] << 8) | (ptr)[3]) 39#define u_32(ptr) (((ptr)[0] << 24) | ((ptr)[1] << 16) | ((ptr)[2] << 8) | (ptr)[3])
40 40
41struct u_pack_tail { 41struct u_pack_tail {
42 unsigned char max_filesize[4]; 42 unsigned char max_uncompressed[4]; /* maximum uncompressed file size */
43 unsigned char size[4]; 43 unsigned char size[4]; /* how many bytes to seke backwards from end(!) of tail */
44 unsigned char reserved[8]; /* must be 0 */
44 char magic[12]; 45 char magic[16];
46 char md5_pack[16]; /* md5(pack) or 0, if there is no checksum */
47 char md5_file[16]; /* md5(urlader) or 0, if there is no checksum */
45}; 48};
46 49
47#endif 50#endif
48 51

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines