Add missing trailing dot in sentences
[viking/guyou.git] / test / gpx2gpx.c
blobcd341bc2c9fb59f32ea56a0749a6c82ef7d3020c
1 #include <stdio.h>
2 #include "gpx.h"
3 #include "viklayer.h"
4 #include "viklayer_defaults.h"
5 #include "settings.h"
6 #include "preferences.h"
7 #include "globals.h"
9 int main(int argc, char *argv[])
11 #if !GLIB_CHECK_VERSION (2, 36, 0)
12 g_type_init();
13 #endif
14 // Some stuff must be initialized as it gets auto used
15 a_settings_init ();
16 a_preferences_init ();
17 a_vik_preferences_init ();
18 a_layer_defaults_init ();
20 VikLayer *vl = vik_layer_create (VIK_LAYER_TRW, NULL, FALSE);
21 VikTrwLayer *trw = VIK_TRW_LAYER (vl);
23 a_gpx_read_file(trw, stdin, NULL);
24 a_gpx_write_file(trw, stdout, NULL, NULL);
25 // NB no layer_free functions directly visible anymore
26 // automatically called by layers_panel_finalize cleanup in full Viking program
28 a_layer_defaults_uninit ();
29 a_preferences_uninit ();
30 a_settings_uninit ();
32 return 0;