]> git.street.me.uk Git - andy/viking.git/blame - test/gpx2gpx.c
Enable option to not write invisible tracks or waypoints in GPX file and don't write...
[andy/viking.git] / test / gpx2gpx.c
CommitLineData
f9ab07c8
GB
1#include <stdio.h>
2#include <gpx.h>
af806756 3#include <viklayer.h>
f9ab07c8
GB
4
5int main(int argc, char *argv[])
6{
0034ee33 7 g_type_init ();
af806756
RN
8 VikLayer *vl = vik_layer_create (VIK_LAYER_TRW, NULL, NULL, 0);
9 VikTrwLayer *trw = VIK_TRW_LAYER (vl);
f9ab07c8 10 a_gpx_read_file(trw, stdin);
208d2084 11 a_gpx_write_file(trw, stdout, NULL);
af806756
RN
12 // NB no layer_free functions directly visible anymore
13 // automatically called by layers_panel_finalize cleanup in full Viking program
0034ee33 14 return 0;
f9ab07c8 15}