|
QGIS API Documentation
master-28efcda
|
00001 /* 00002 * Copyright Tim (xtimor@gmail.com) 00003 * 00004 * NMEA library is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU Lesser General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/> 00016 */ 00017 /* 00018 * 00019 * NMEA library 00020 * URL: http://nmea.sourceforge.net 00021 * Author: Tim (xtimor@gmail.com) 00022 * Licence: http://www.gnu.org/licenses/lgpl.html 00023 * $Id: context.h 4 2007-08-27 13:11:03Z xtimor $ 00024 * 00025 */ 00026 00027 #ifndef __NMEA_CONTEXT_H__ 00028 #define __NMEA_CONTEXT_H__ 00029 00030 #include "config.h" 00031 00032 #define NMEA_DEF_PARSEBUFF (1024) 00033 #define NMEA_MIN_PARSEBUFF (256) 00034 00035 #ifdef __cplusplus 00036 extern "C" 00037 { 00038 #endif 00039 00040 typedef void ( *nmeaTraceFunc )( const char *str, int str_size ); 00041 typedef void ( *nmeaErrorFunc )( const char *str, int str_size ); 00042 00043 typedef struct _nmeaPROPERTY 00044 { 00045 nmeaTraceFunc trace_func; 00046 nmeaErrorFunc error_func; 00047 int parse_buff_size; 00048 00049 } nmeaPROPERTY; 00050 00051 nmeaPROPERTY * nmea_property(); 00052 00053 void nmea_trace( const char *str, ... ); 00054 void nmea_trace_buff( const char *buff, int buff_size ); 00055 void nmea_error( const char *str, ... ); 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif /* __NMEA_CONTEXT_H__ */