You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mapsend.h 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. Access to MapSend files.
  3. Copyright (C) 2002 Robert Lipe, robertlipe@usa.net
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU 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. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
  15. *
  16. * Information from:
  17. * Mapsend File Format Description Revision 1.1, March 6, 2002 from Thales.
  18. *
  19. * Note this file format was clearly NOT designed for cross-architecture
  20. * portability. In fact, because of the pascal nature of the 'string'
  21. * data type described in that document, it's impractical to describe
  22. * a 'struct waypoint' in C.
  23. *
  24. */
  25. typedef struct {
  26. char ms_length;
  27. char ms_signature[11];
  28. char ms_version[2];
  29. char ms_type;
  30. char _ms_type[3];
  31. } mapsend_hdr;
  32. typedef enum {
  33. ms_type_rgn = 0,
  34. ms_type_wpt = 1,
  35. ms_type_track = 2,
  36. ms_type_log = 3
  37. } ms_type;