]> git.street.me.uk Git - andy/viking.git/blame - test/geotag_write.c
Some spelling fixes in a comment
[andy/viking.git] / test / geotag_write.c
CommitLineData
7e7854e8 1// Copyright: CC0
86f343b5
RN
2#include <stdio.h>
3#include <glib.h>
4#include <glib/gstdio.h>
5#include "geotag_exif.h"
6#include "vikcoord.h"
7
8int 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