• Main Page
  • Data Structures
  • Files
  • File List
  • Globals

src/helpers.h

Go to the documentation of this file.
00001 /* $Id: helpers.h 199 2011-05-22 05:09:13Z oh2gve $
00002  *
00003  * Copyright 2005, 2006, 2007, 2008, 2009, 2010 Tapio Sokura
00004  * Copyright 2007, 2008, 2009, 2010 Heikki Hannikainen
00005  *
00006  * Perl-to-C modifications
00007  * Copyright 2009, 2010, 2011 Tapio Aaltonen
00008  *
00009  * This file is part of libfap.
00010  *
00011  * Libfap is free software; you can redistribute it and/or modify it under the
00012  * terms of either:
00013  *
00014  * a) the GNU General Public License as published by the Free Software
00015  * Foundation; either version 1, or (at your option) any later
00016  * version, or
00017  * 
00018  * b) the "Artistic License". 
00019  * 
00020  * Both licenses can be found in the licenses directory of this source code
00021  * package.
00022  *
00023  * APRS is a registered trademark of APRS Software and Bob Bruninga, WB4APR.
00024 */
00025 
00032 #ifndef HELPERS_H
00033 #define HELPERS_H
00034 
00035 
00036 #include <time.h>
00037 #include "fap.h"
00038 
00039 
00040 
00042 
00045 int fapint_parse_header(fap_packet_t* packet, short const is_ax25);
00046 
00047 
00049 
00053 int fapint_parse_mice(fap_packet_t* packet, char const* input, unsigned int const input_len);
00054 
00055 
00057 
00060 time_t fapint_parse_timestamp(char const* input);
00061 
00062 
00064 
00068 int fapint_parse_compressed(fap_packet_t* packet, char const* input);
00069 
00070 
00072 
00076 int fapint_parse_normal(fap_packet_t* packet, char const* input);
00077 
00078 
00080 
00083 void fapint_parse_comment(fap_packet_t* packet, char const* input, unsigned int const input_len);
00084 
00085 
00087 
00090 int fapint_parse_nmea(fap_packet_t* packet, char const* input, unsigned int const input_len);
00091 
00092 
00094 
00097 int fapint_parse_object(fap_packet_t* packet, char const* input, unsigned int const input_len);
00098 
00099 
00101 
00104 int fapint_parse_item(fap_packet_t* packet, char const* input, unsigned int const input_len);
00105 
00106 
00108 
00111 int fapint_parse_message(fap_packet_t* packet, char const* input, unsigned int const input_len);
00112 
00113 
00115 
00118 int fapint_parse_capabilities(fap_packet_t* packet, char const* input, unsigned int const input_len);
00119 
00120 
00122 
00125 int fapint_parse_status(fap_packet_t* packet, char const* input, unsigned int const input_len);
00126 
00127 
00129 
00132 int fapint_parse_wx(fap_packet_t* packet, char const* input, unsigned int const input_len);
00133 
00134 
00136 
00139 int fapint_parse_telemetry(fap_packet_t* packet, char const* input);
00140 
00141 
00143 
00146 int fapint_parse_wx_peet_logging(fap_packet_t* packet, char const* input);
00147 
00148 
00150 
00153 int fapint_parse_wx_peet_packet(fap_packet_t* packet, char const* input);
00154 
00155 
00157 
00163 int fapint_parse_dao(fap_packet_t* packet, char input[3]);
00164 
00165 
00166 
00168 
00173 char* fapint_check_kiss_callsign(char* input);
00174 
00175 
00176 
00177 /* Implementation-specific helpers. */
00178 
00179 
00181 fap_packet_t* fapint_create_packet();
00182 
00183 
00184 
00185 #endif // HELPERS_H

Generated on Wed Dec 21 2011 23:04:42 for libfap by  doxygen 1.7.1