171
|
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
|
172
|
24 #define LWAR_OP_LIST 1
|
|
25 #define LWAR_OP_ADD 2
|
|
26 #define LWAR_OP_REMOVE 3
|
|
27 #define LWAR_OP_CREATE 4
|
188
|
28 #define LWAR_OP_EXTRACT 5
|
|
29 #define LWAR_OP_REPLACE 6
|
172
|
30
|
171
|
31 #ifndef __lwar_h_seen__
|
|
32 #define __lwar_h_seen__
|
|
33
|
|
34 #ifndef __lwar_c_seen__
|
|
35
|
172
|
36 extern char *archive_file;
|
171
|
37 extern int debug_level;
|
172
|
38 extern int operation;
|
|
39 extern int nfiles;
|
|
40 extern char **files;
|
174
|
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
|
171
|
50
|
|
51 #define __lwar_E__ extern
|
|
52 #else
|
|
53 #define __lwar_E__
|
|
54 #endif // __lwar_c_seen__
|
|
55
|
172
|
56 __lwar_E__ void add_file_name(char *fn);
|
|
57
|
174
|
58 //__lwar_E__ ARHANDLE open_archive(char *fn, int mode);
|
|
59
|
171
|
60 #undef __lwar_E__
|
|
61
|
|
62 #endif //__lwar_h_seen__
|