1/* datasrc.ih
2 */
3/* This software is copyrighted as detailed in the LICENSE file. */
4
5#ifdef SUPPORT_NNTP
6# ifdef I_UTIME
7#   include <utime.h>
8# else
9  struct utimbuf {
10      time_t actime;
11      time_t modtime;
12  };
13# endif
14#endif
15
16#define SRCFILE_CHUNK_SIZE (32*1024)
17
18#define DI_NNTP_SERVER	1
19#define DI_ACTIVE_FILE	2
20#define DI_ACT_REFETCH	3
21#define DI_SPOOL_DIR	4
22#define DI_THREAD_DIR	5
23#define DI_OVERVIEW_DIR	6
24#define DI_ACTIVE_TIMES	7
25#define DI_GROUP_DESC	8
26#define DI_DESC_REFETCH	9
27#define DI_AUTH_USER	10
28#define DI_AUTH_PASS	11
29#define DI_AUTH_COMMAND	12
30#define DI_XHDR_BROKEN	13
31#define DI_XREFS	14
32#define DI_OVERVIEW_FMT	15
33#define DI_FORCE_AUTH	16
34
35INI_WORDS datasrc_ini[] = {
36    { 0, "DATASRC", 0 },
37    { 0, "NNTP Server", 0 },
38    { 0, "Active File", 0 },
39    { 0, "Active File Refetch", 0 },
40    { 0, "Spool Dir", 0 },
41    { 0, "Thread Dir", 0 },
42    { 0, "Overview Dir", 0 },
43    { 0, "Active Times", 0 },
44    { 0, "Group Desc", 0 },
45    { 0, "Group Desc Refetch", 0 },
46    { 0, "Auth User", 0 },
47    { 0, "Auth Password", 0 },
48    { 0, "Auth Command", 0 },
49    { 0, "XHDR Broken", 0 },
50    { 0, "Xrefs", 0 },
51    { 0, "Overview Format File", 0 },
52    { 0, "Force Auth", 0 },
53    { 0, 0, 0 }
54};
55
56/* DON'T EDIT BELOW THIS LINE OR YOUR CHANGES WILL BE LOST! */
57
58static char* dir_or_none _((DATASRC*,char*,int));
59static char* file_or_none _((char*));
60static int srcfile_cmp _((char*,int,HASHDATUM));
61static int check_distance _((int,HASHDATUM*,int));
62static int get_near_miss _((void));
63