]>
Commit | Line | Data |
---|---|---|
f9ab07c8 | 1 | #include <stdio.h> |
45680629 RN |
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" | |
f9ab07c8 GB |
8 | |
9 | int main(int argc, char *argv[]) | |
10 | { | |
72f4b00d RN |
11 | #if !GLIB_CHECK_VERSION (2, 36, 0) |
12 | g_type_init(); | |
13 | #endif | |
45680629 RN |
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 (); | |
19 | ||
2b49017b | 20 | VikLayer *vl = vik_layer_create (VIK_LAYER_TRW, NULL, FALSE); |
af806756 | 21 | VikTrwLayer *trw = VIK_TRW_LAYER (vl); |
45680629 | 22 | |
f9ab07c8 | 23 | a_gpx_read_file(trw, stdin); |
208d2084 | 24 | a_gpx_write_file(trw, stdout, NULL); |
af806756 RN |
25 | // NB no layer_free functions directly visible anymore |
26 | // automatically called by layers_panel_finalize cleanup in full Viking program | |
0034ee33 | 27 | return 0; |
f9ab07c8 | 28 | } |