1 /*
2     gutenfetch - a small utility to list and fetch books available through
3 	project gutenberg
4 
5     Copyright (C) 2001, 2002, 2003, 2004 Russell Francis
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 2 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, write to the
19 
20 	Free Software Foundation, Inc.
21 	59 Temple Place, Suite 330
22 	Boston, MA  02111-1307  USA
23 
24 Last updated on $Date: 2004/03/21 05:14:18 $ by $Author: johntabularasa $.
25 */
26 #ifndef LIBGUTENFETCH_FILEINFO_H
27 #define LIBGUTENFETCH_FILEINFO_H
28 
29 typedef struct {
30 	char *filename;
31 	size_t filesize;
32 } file_info_t;
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif /* __cplusplus */
37 
38 	file_info_t * file_info_new(
39 		const char *filename,
40 		size_t filesize);
41 
42 	void file_info_free(
43 		file_info_t *fi);
44 
45 	int file_info_compare(
46 		const file_info_t *a,
47 		const file_info_t *b,
48 		void *p);
49 
50 #ifdef __cplusplus
51 }
52 #endif /* __cplusplus */
53 
54 #endif /* LIBGUTENFETCH_FILEINFO_H */
55