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  * FCC Database structures
26  *
27  */
28 
29 /*
30 type_purpose - Indicates the reason why the application was
31                filed.  Multiple codes may occur.  Codes are:
32 
33     A  New license
34     B  Change existing class
35     C  Change name
36     D  Change mailing address
37     E  Change callsign
38     F  Renewal on Form 610
39     G  Add record (internal)
40     H  Duplicate license request
41     I  Change Issue/Expiration Date
42     J  Supercede
43     K  Internal correction code
44     L  Delete
45     N  Renewal on form 610R
46     O  Renewal on form 610B
47     P  Modification on form 610B
48     Q  Restore both database and pending
49     R  Restore database
50     S  Special callsign change
51 
52 type_applicant - Indicates type of application.  Codes are:
53 
54     A  Alien
55     C  Club
56     I  Individual
57     M  Military recreation
58     R  RACES
59 
60 */
61 
62 #ifndef XASTIR_FCC_DATA_H
63 #define XASTIR_FCC_DATA_H
64 
65 #define FCC_DATA_LEN 200
66 
67 typedef struct
68 {
69   char id_callsign[11];
70   char id_file_num[11];
71   char type_purpose[9];
72   char type_applicant;
73   char name_licensee[41];
74   char text_street[36];
75   char text_pobox[21];
76   char city[30];
77   char state[3];
78   char zipcode[10];
79   char filler;
80   char date_issue[7];
81   char date_expire[7];
82   char date_last_change[7];
83   char id_examiner[4];
84   char renewal_notice;
85 } FccAppl;
86 
87 extern int check_fcc_data(void);
88 extern int search_fcc_data_appl(char *callsign, FccAppl *data);
89 
90 #endif /* XASTIR_FCC_DATA_H */
91