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 #ifndef __XASTIR_WX_H
26 #define __XASTIR_WX_H
27 
28 #include "database.h"
29 
30 extern void fill_wx_data(void);
31 
32 extern Widget GetTopShell(Widget w);
33 extern void pos_dialog(Widget w);
34 extern char wx_station_type[];
35 
36 /* from wx.c */
37 extern char wx_dew_point[10];
38 extern char wx_dew_point_on;
39 extern char wx_high_wind[10];
40 extern char wx_high_wind_on;
41 extern char wx_wind_chill[10];
42 extern char wx_wind_chill_on;
43 extern char wx_three_hour_baro[10]; // hPa
44 extern char wx_three_hour_baro_on;  // hPa
45 extern char wx_hi_temp[10];
46 extern char wx_hi_temp_on;
47 extern char wx_low_temp[10];
48 extern char wx_low_temp_on;
49 extern char wx_heat_index[10];
50 extern char wx_heat_index_on;
51 extern char wx_station_type[];
52 
53 
54 /* from wx.c */
55 extern time_t wx_tx_data1(char *st, int st_size);
56 extern void wx_decode(unsigned char *wx_line, int data_length, int port);
57 extern void fill_wx_data(void);
58 extern void clear_rain_data(void);
59 extern void tx_raw_wx_data(void);
60 extern void clear_local_wx_data(void);
61 extern void wx_last_data_check(void);
62 extern void wx_fill_data(int from, int type, unsigned char *data, DataRow *fill);
63 extern void decode_U2000_L(int from, unsigned char *data, WeatherRow *weather);
64 extern void decode_U2000_P(int from, unsigned char *data, WeatherRow *weather);
65 extern void decode_Peet_Bros(int from, unsigned char *data, WeatherRow *weather, int type);
66 extern void cycle_weather(void);
67 
68 
69 /* wx_gui.c */
70 extern void wx_alert_update_list(void);
71 
72 extern void WX_station(Widget w, XtPointer clientData, XtPointer callData);
73 
74 extern void wx_alert_finger_output( Widget widget, char *handle);
75 
76 #endif  // __XASTIR_WX_H
77 
78 
79