]> git.street.me.uk Git - andy/viking.git/blobdiff - src/gpx.h
[DOC] Switch from ordered list to a itemitized list.
[andy/viking.git] / src / gpx.h
index 710774d3b1a228b3d9b04786e81b06e764b69417..70f3d97d425ab9224aef150f2d126f43464f7bcb 100644 (file)
--- a/src/gpx.h
+++ b/src/gpx.h
 #ifndef _VIKING_GPX_H
 #define _VIKING_GPX_H
 
-void a_gpx_read_file ( VikTrwLayer *trw, FILE *f );
-void a_gpx_write_file ( VikTrwLayer *trw, FILE *f );
+#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 convenience
+} GpxWritingOptions;
+
+gboolean a_gpx_read_file ( VikTrwLayer *trw, 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 );
+
+gchar* a_gpx_write_tmp_file ( VikTrwLayer *vtl, GpxWritingOptions *options );
+gchar* a_gpx_write_track_tmp_file ( VikTrack *trk, GpxWritingOptions *options );
+
+G_END_DECLS
 
 #endif