libfap  1.4
helpers.h
Go to the documentation of this file.
1 /* $Id: helpers.h 226 2014-11-23 12:33:36Z oh2gve $
2  *
3  * Copyright 2005-2012 Tapio Sokura
4  * Copyright 2007-2012 Heikki Hannikainen
5  *
6  * Perl-to-C modifications
7  * Copyright 2009-2014 Tapio Aaltonen
8  *
9  * This file is part of libfap.
10  *
11  * Libfap is free software; you can redistribute it and/or modify it under the
12  * terms of either:
13  *
14  * a) the GNU General Public License as published by the Free Software
15  * Foundation; either version 1, or (at your option) any later
16  * version, or
17  *
18  * b) the "Artistic License".
19  *
20  * Both licenses can be found in the licenses directory of this source code
21  * package.
22  *
23  * APRS is a registered trademark of APRS Software and Bob Bruninga, WB4APR.
24 */
25 
32 #ifndef HELPERS_H
33 #define HELPERS_H
34 
35 
36 #include <time.h>
37 #include "fap.h"
38 
39 
40 
42 
45 int fapint_parse_header(fap_packet_t* packet, short const is_ax25);
46 
47 
49 
53 int fapint_parse_mice(fap_packet_t* packet, char const* input, unsigned int const input_len);
54 
55 
57 
60 time_t fapint_parse_timestamp(char const* input);
61 
62 
64 
68 int fapint_parse_compressed(fap_packet_t* packet, char const* input);
69 
70 
72 
76 int fapint_parse_normal(fap_packet_t* packet, char const* input);
77 
78 
80 
83 void fapint_parse_comment(fap_packet_t* packet, char const* input, unsigned int const input_len);
84 
85 
87 
90 int fapint_parse_nmea(fap_packet_t* packet, char const* input, unsigned int const input_len);
91 
92 
94 
97 int fapint_parse_object(fap_packet_t* packet, char const* input, unsigned int const input_len);
98 
99 
101 
104 int fapint_parse_item(fap_packet_t* packet, char const* input, unsigned int const input_len);
105 
106 
108 
111 int fapint_parse_message(fap_packet_t* packet, char const* input, unsigned int const input_len);
112 
113 
115 
118 int fapint_parse_capabilities(fap_packet_t* packet, char const* input, unsigned int const input_len);
119 
120 
122 
125 int fapint_parse_status(fap_packet_t* packet, char const* input, unsigned int const input_len);
126 
127 
129 
132 int fapint_parse_wx(fap_packet_t* packet, char const* input, unsigned int const input_len);
133 
134 
136 
139 int fapint_parse_telemetry(fap_packet_t* packet, char const* input);
140 
141 
143 
146 int fapint_parse_wx_peet_logging(fap_packet_t* packet, char const* input);
147 
148 
150 
153 int fapint_parse_wx_peet_packet(fap_packet_t* packet, char const* input);
154 
155 
157 
163 int fapint_parse_dao(fap_packet_t* packet, char input[3]);
164 
165 
166 
168 
173 char* fapint_check_kiss_callsign(char* input);
174 
175 
176 
177 /* Implementation-specific helpers. */
178 
179 
182 
183 
184 
185 #endif // HELPERS_H