/* */
1 /*
2 * Copyright (c) 2006
3 * Tama Communications Corporation
4 *
5 * This file is part of GNU GLOBAL.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef _FILEOP_H
21 #define _FILEOP_H
22
23 #ifdef HAVE_CONFIG_H
24 #include <config.h>
25 #endif
26 #include <stdio.h>
27
28 #include "gparam.h"
29
30 #define FILEOP_INPUT 1
31 #define FILEOP_OUTPUT 2
32 #define FILEOP_COMPRESS 4
33
34 typedef struct {
35 int type;
36 FILE *fp;
37 char command[MAXFILLEN];
38 char path[MAXPATHLEN];
39 } FILEOP;
40
41 FILEOP *open_input_file(const char *);
42 FILEOP *open_output_file(const char *, int);
43 FILE *get_descripter(FILEOP *);
44 void close_file(FILEOP *);
45
46 #endif /* ! _FILEOP_H */
/* */