X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/5092de80d905b2500af04ec610db0e05a8a24225..05a8e0d352affa5999cf906249aa40c7c44fc4f0:/src/gpx.h diff --git a/src/gpx.h b/src/gpx.h index 7c8c5afe..70f3d97d 100644 --- a/src/gpx.h +++ b/src/gpx.h @@ -24,8 +24,26 @@ #include "viktrwlayer.h" -void a_gpx_read_file ( VikTrwLayer *trw, FILE *f ); -void a_gpx_write_file ( VikTrwLayer *trw, FILE *f ); -void a_gpx_write_track_file ( const gchar *name, VikTrack *track, FILE *f ); +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