X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/bf35388d0815a5ae2749d4ab4545c2289076372e..b9f777e49bfc5880152c9c9b6f3e33d1a504fa31:/src/gpx.h diff --git a/src/gpx.h b/src/gpx.h index 0ef03cb6..7b1c925e 100644 --- a/src/gpx.h +++ b/src/gpx.h @@ -22,6 +22,25 @@ #ifndef _VIKING_GPX_H #define _VIKING_GPX_H -void a_gpx_read_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 convience +} 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 ); + +G_END_DECLS #endif