comparison lwar/lwar.h @ 0:2c24602be78f

Initial import from lwtools 3.0.1 version, with new hand built build system and file reorganization
author lost@l-w.ca
date Wed, 19 Jan 2011 22:27:17 -0700
parents
children 45df37e81741
comparison
equal deleted inserted replaced
-1:000000000000 0:2c24602be78f
1 /*
2 lwar.h
3 Copyright © 2009 William Astle
4
5 This file is part of LWAR.
6
7 LWAR is free software: you can redistribute it and/or modify it under the
8 terms of the GNU General Public License as published by the Free Software
9 Foundation, either version 3 of the License, or (at your option) any later
10 version.
11
12 This program is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 more details.
16
17 You should have received a copy of the GNU General Public License along with
18 this program. If not, see <http://www.gnu.org/licenses/>.
19
20 Contains the main defs used by the linker
21 */
22
23
24 #define LWAR_OP_LIST 1
25 #define LWAR_OP_ADD 2
26 #define LWAR_OP_REMOVE 3
27 #define LWAR_OP_CREATE 4
28 #define LWAR_OP_EXTRACT 5
29 #define LWAR_OP_REPLACE 6
30
31 #ifndef __lwar_h_seen__
32 #define __lwar_h_seen__
33
34 #ifndef __lwar_c_seen__
35
36 extern char *archive_file;
37 extern int debug_level;
38 extern int operation;
39 extern int nfiles;
40 extern char **files;
41 extern int mergeflag;
42
43 //typedef void * ARHANDLE;
44
45 #define AR_MODE_RD 1
46 #define AR_MODE_WR 2
47 #define AR_MODE_RW 3
48 #define AR_MODE_CREATE 4
49
50
51 #define __lwar_E__ extern
52 #else
53 #define __lwar_E__
54 #endif // __lwar_c_seen__
55
56 __lwar_E__ void add_file_name(char *fn);
57
58 //__lwar_E__ ARHANDLE open_archive(char *fn, int mode);
59
60 #undef __lwar_E__
61
62 #endif //__lwar_h_seen__