]> git.street.me.uk Git - andy/viking.git/blob - test/gpx2gpx.c
Add capability to define the URL format for web links.
[andy/viking.git] / test / gpx2gpx.c
1 #include <stdio.h>
2 #include <gpx.h>
3 #include <viklayer.h>
4
5 int main(int argc, char *argv[])
6 {
7   g_type_init ();
8   VikLayer *vl = vik_layer_create (VIK_LAYER_TRW, NULL, FALSE);
9   VikTrwLayer *trw = VIK_TRW_LAYER (vl);
10   a_gpx_read_file(trw, stdin);
11   a_gpx_write_file(trw, stdout, NULL);
12   // NB no layer_free functions directly visible anymore
13   //  automatically called by layers_panel_finalize cleanup in full Viking program
14   return 0;
15 }