00001 /***************************************************************************** 00002 * 00003 * $RCSfile: DataExchange_8h-source.html,v $ 00004 * 00005 * GPS4Palm Data Exchange using Garmin Protocol 00006 * 00007 * This program is Copyright (C) 12/2002 Matthias Prinke 00008 * <matthias.prinke@surfeu.de> and covered by GNU's GPL. 00009 * In particular, this program is free software and comes WITHOUT 00010 * ANY WARRANTY. 00011 * 00012 * $Author: mp $ 00013 * 00014 * $Date: 2007-10-08 20:40:32 $ 00015 * 00016 * $Revision: 1.7.2.1 $ 00017 * 00018 * $Log: DataExchange_8h-source.html,v $ 00018 * Revision 1.7.2.1 2007-10-08 20:40:32 mp 00018 * updated for gps4palm V0.9.5 beta 00018 * 00019 * Revision 1.5 2004-11-30 21:05:14 mp 00020 * added get_next_trk(), store_trk(),a and NumTrkPackets() 00021 * 00022 * Revision 1.4 2004/11/24 21:05:24 mp 00023 * moved static function declarations from header to implementation file 00024 * 00025 * Revision 1.3 2004/11/11 18:52:43 mp 00026 * added TermStr() 00027 * 00028 * Revision 1.2 2004/06/23 18:07:05 mp 00029 * added NumRtePackets() 00030 * 00031 * Revision 1.1 2004/04/29 20:02:52 mp 00032 * initial version 00033 * 00034 * 00035 ****************************************************************************/ 00036 #ifndef DATAEXCHANGE_H 00037 #define DATAEXCHANGE_H 00038 00039 /* 00040 * The data exchange functions are in their own segment 00041 */ 00042 #define DATAEXCHANGE_SECTION __attribute__ ((section ("database"))) 00043 00044 GarminObject *get_next_wpt(UInt16 current, LocalFormatID format, 00045 unsigned char *size) DATAEXCHANGE_SECTION; 00046 00047 GarminObject *get_next_rte(UInt16 current, LocalFormatID format, 00048 unsigned char *size, Boolean * h, Boolean * eor) DATAEXCHANGE_SECTION; 00049 00050 GarminObject *get_next_trk(UInt16 current, LocalFormatID format, 00051 byte *size, Boolean * eot) DATAEXCHANGE_SECTION; 00052 00053 Err store_wpt(GarminObject* wpt, UInt16 total, UInt16 current, 00054 LocalFormatID format, byte size) DATAEXCHANGE_SECTION; 00055 00056 Err store_rte(GarminObject* obj, UInt16 total, UInt16 current, 00057 LocalFormatID format, byte size) DATAEXCHANGE_SECTION; 00058 00059 Err store_trk(GarminObject * trk, UInt16 total, UInt16 current, 00060 LocalFormatID format, byte size) DATAEXCHANGE_SECTION; 00061 00062 UInt16 NumRtePackets(void) DATAEXCHANGE_SECTION; 00063 00064 UInt16 NumTrkPackets(void) DATAEXCHANGE_SECTION; 00065 00066 #endif