QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
context.h
Go to the documentation of this file.
1 /*
2 * Copyright Tim ([email protected])
3 *
4 * NMEA library is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>
16 */
17 /*
18  *
19  * NMEA library
20  * URL: http://nmea.sourceforge.net
21  * Author: Tim ([email protected])
22  * Licence: http://www.gnu.org/licenses/lgpl.html
23  * $Id: context.h 4 2007-08-27 13:11:03Z xtimor $
24  *
25  */
26 
27 #ifndef __NMEA_CONTEXT_H__
28 #define __NMEA_CONTEXT_H__
29 
30 #include "config.h"
31 
32 #define NMEA_DEF_PARSEBUFF (1024)
33 #define NMEA_MIN_PARSEBUFF (256)
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif
39 
40  typedef void ( *nmeaTraceFunc )( const char *str, int str_size );
41  typedef void ( *nmeaErrorFunc )( const char *str, int str_size );
42 
43  typedef struct _nmeaPROPERTY
44  {
48 
49  } nmeaPROPERTY;
50 
52 
53  void nmea_trace( const char *str, ... );
54  void nmea_trace_buff( const char *buff, int buff_size );
55  void nmea_error( const char *str, ... );
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* __NMEA_CONTEXT_H__ */