1 /*
2  *
3  * XASTIR, Amateur Station Tracking and Information Reporting
4  * Copyright (C) 1999,2000  Frank Giannandrea
5  * Copyright (C) 2000-2019 The Xastir Group
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (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 Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20  *
21  * Look at the README for more information on the program.
22  */
23 
24 /*
25  * Industry Canada/RAC  Database structure
26  * 472 bytes -- filler is club info
27  * qual fields represent basic, 5wpm, 12wpm, advanced
28  */
29 
30 #ifndef __XASTIR_RAC_DATA_H
31 #define __XASTIR_RAC_DATA_H
32 
33 #define RAC_DATA_LEN 472
34 
35 typedef struct
36 {
37   char callsign[7];
38   char first_name[36];
39   char last_name[36];
40   char address[71];
41   char city[36];
42   char province[3];
43   char postal_code[11];
44   char qual_a[2];
45   char qual_b[2];
46   char qual_c[2];
47   char qual_d[2];
48   char club_name[142];
49   char club_address[71];
50   char club_city[36];
51   char club_province[3];
52   char club_postal_code[10];
53   char crlf[2];
54   char filler[8]; // To prevent overruns
55 } rac_record;
56 
57 extern int search_rac_data(char *callsign, rac_record *data);
58 extern int search_rac_data_appl(char *callsign, rac_record *data);
59 extern int check_rac_data(void);
60 
61 
62 #endif /* __XASTIR_RAC_DATA_H */
63 
64