3 * This file is part of Maemo Mapper.
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.
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.
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/>.
19 * Parts of this code have been ported from Xastir by Rob Williams (Aug 2008):
21 * * XASTIR, Amateur Station Tracking and Information Reporting
22 * Copyright (C) 1999,2000 Frank Giannandrea
23 * Copyright (C) 2000-2007 The Xastir Group
33 #ifndef MAEMO_MAPPER_APRS_DECODE_H
34 #define MAEMO_MAPPER_APRS_DECODE_H
36 #define xastir_snprintf snprintf
42 void substr(char *dest, char *src, int size);
43 gint decode_ax25_line(gchar *line, TAprsPort port);
46 int extract_position(AprsDataRow *p_station, char **info, int type);
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);
54 double convert_lat_l2d(long lat);
55 double convert_lon_l2d(long lon);