]> git.itanic.dy.fi Git - maemo-mapper/blob - src/aprs_decode.h
Added basic APRS support - Can be disabled by removing definition of INCLUDE_APRS
[maemo-mapper] / src / aprs_decode.h
1 /*
2  * 
3  * This file is part of Maemo Mapper.
4  *
5  * Maemo Mapper is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * Maemo Mapper is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with Maemo Mapper.  If not, see <http://www.gnu.org/licenses/>.
17  * 
18  * 
19  * Parts of this code have been ported from Xastir by Rob Williams (Aug 2008):
20  * 
21  *  * XASTIR, Amateur Station Tracking and Information Reporting
22  * Copyright (C) 1999,2000  Frank Giannandrea
23  * Copyright (C) 2000-2007  The Xastir Group
24  * 
25  */
26
27 #ifdef HAVE_CONFIG_H
28 #    include "config.h"
29 #endif
30
31 #ifdef INCLUDE_APRS
32
33 #ifndef MAEMO_MAPPER_APRS_DECODE_H
34 #define MAEMO_MAPPER_APRS_DECODE_H
35
36 #define xastir_snprintf snprintf
37
38 #include "types.h"
39
40
41
42 void substr(char *dest, char *src, int size);
43 gint decode_ax25_line(gchar *line, TAprsPort port);
44
45
46 int extract_position(AprsDataRow *p_station, char **info, int type);
47 time_t sec_now(void);
48 void insert_name(AprsDataRow *p_new, AprsDataRow *p_name);
49 double calc_distance_haversine_radian(double lat1, double lon1, double lat2, double lon2);
50 void init_station_data(void);
51 void init_station(AprsDataRow *p_station);
52 char *get_tactical_from_hash(char *callsign);
53
54 double convert_lat_l2d(long lat);
55 double convert_lon_l2d(long lon);
56
57 #endif
58
59 #endif //INCLUDE_APRS
60