1 /*****************************************************************************
2  * HPUCODE --- Uuencoded files from FTN messagebase extractor
3  *****************************************************************************
4  * Copyright (C) 2002  Max Chernogor & Husky Team
5  *
6  * http://husky.sf.net
7  *
8  * This file is part of HUSKY fidonet package.
9  *
10  * HUSKY is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU General Public License as published by the
12  * Free Software Foundation; either version 2, or (at your option) any
13  * later version.
14  *
15  * HUSKY is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with HPT; see the file COPYING.  If not, write to the Free
22  * Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23  *****************************************************************************/
24 /* $Id$ */
25 
26 #ifndef DUPE_H
27 #define DUPE_H
28 
29 #include <fidoconf/fidoconf.h>
30 #include <huskylib/typesize.h>
31 #include <huskylib/tree.h>
32 
33 /* This header file contains the structures of the dupe file */
34 
35 struct textDupeEntry {
36   char *filename, *from, *areaname;
37   time_t timeCreated;
38 };
39 
40 typedef struct textDupeEntry s_textDupeEntry;
41 
42 
43 typedef struct hashMDupeEntry s_hashMDupeEntry;
44 
45 struct dupeMemory {
46   tree *avlTree;
47 };
48 
49 typedef struct dupeMemory s_dupeMemory;
50 
51 
52 int writeToDupeFile();
53 int dupeDetection(s_textDupeEntry *msg);
54 
55 #endif /* DUPE_H */
56