]> git.street.me.uk Git - andy/viking.git/blob - test/geotag_write.c
Make each tool contain it's own icon definition.
[andy/viking.git] / test / geotag_write.c
1 // Copyright: CC0
2 #include <stdio.h>
3 #include <glib.h>
4 #include <glib/gstdio.h>
5 #include "geotag_exif.h"
6 #include "vikcoord.h"
7  
8 int main(int argc, char *argv[])
9 {
10 #if !GLIB_CHECK_VERSION(2,36,0)
11   g_type_init ();
12 #endif
13
14   int answer = 0;
15   if ( argv[1] ) {
16     struct LatLon ll = { 51.179489, -1.826217 };
17     VikCoord vc;
18     vik_coord_load_from_latlon ( &vc, VIK_COORD_LATLON, &ll );
19     answer = a_geotag_write_exif_gps ( argv[1], vc, 0.0, TRUE );
20   }
21  
22   return answer;
23 }
24