]> git.street.me.uk Git - andy/viking.git/blobdiff - src/gpx.h
Enable control of create_label_vbox spacing and padding.
[andy/viking.git] / src / gpx.h
index 32632d50b98ade3af68a8c438d813b6885895d69..7b1c925e080c74dbeca7a7c401b699187561a83f 100644 (file)
--- a/src/gpx.h
+++ b/src/gpx.h
 
 #include "viktrwlayer.h"
 
+G_BEGIN_DECLS
+
 /**
  * Options adapting GPX writing.
  */
 typedef struct {
+       // NB force options only apply to trackpoints
        gboolean force_ele; /// Force ele field
        gboolean force_time; /// Force time field
+       gboolean hidden; /// Write invisible tracks/waypoints (default is yes)
+       gboolean is_route; /// For internal convience
 } GpxWritingOptions;
 
 gboolean a_gpx_read_file ( VikTrwLayer *trw, FILE *f );
-void a_gpx_write_file ( VikTrwLayer *trw, FILE *f );
-void a_gpx_write_file_options ( GpxWritingOptions *options, VikTrwLayer *trw, FILE *f );
-void a_gpx_write_track_file ( VikTrack *trk, FILE *f );
-void a_gpx_write_track_file_options ( GpxWritingOptions *options, VikTrack *trk, FILE *f );
+void a_gpx_write_file ( VikTrwLayer *trw, FILE *f, GpxWritingOptions *options );
+void a_gpx_write_track_file ( VikTrack *trk, FILE *f, GpxWritingOptions *options );
+
+G_END_DECLS
 
 #endif