X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/0b72c4358346b89e23ff20333808e7293e25111e..f77bbb5e54216f967848bf6806a341be8b83d41c:/src/gpx.h diff --git a/src/gpx.h b/src/gpx.h index 5b2ede95..7b1c925e 100644 --- a/src/gpx.h +++ b/src/gpx.h @@ -24,18 +24,23 @@ #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; -void 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 ( const gchar *name, VikTrack *track, FILE *f ); -void a_gpx_write_track_file_options ( GpxWritingOptions *options, const gchar *name, VikTrack *t, FILE *f ); +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