4 #include "viklayer_defaults.h"
6 #include "preferences.h"
9 int main(int argc
, char *argv
[])
11 #if !GLIB_CHECK_VERSION (2, 36, 0)
14 // Some stuff must be initialized as it gets auto used
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 ();