1 /* $Id$
2    Written 1999 by Tobias Ernst and released do the Public Domain.
3    This file is part of NLTOOLS, the nodelist processor of the Husky fidonet
4    software project.
5 
6 */
7 #ifndef NLFIND_H
8 #define NLFIND_H
9 
10 #include <fidoconf/fidoconf.h>
11 #include <huskylib/dirlayer.h>
12 
13 typedef struct s_nlist
14 {
15     char **matches;
16     int *applied;
17     long *julians;
18     int n, nmax;
19 } nlist;
20 
21 /* find nodelist or nodediff : base.NNN or base.CNN (C - char, N - digit)
22  */
23 nlist *find_nodelistfiles(char *path, char *base, int allowarc);
24 /* release 'pnl' list (free memory)
25  */
26 void free_nlist(nlist *pnl);
27 /* Store 'match' into 'pnl' list
28  */
29 int add_match(nlist *pnl, char *match);
30 
31 /* find the raw nodelist (look in nodelistdir)
32  */
33 char *findNodelist(s_fidoconfig *config, unsigned int i);
34 
35 #endif
36