1 |
/**
|
2 |
* ZANavi, Zoff Android Navigation system.
|
3 |
* Copyright (C) 2011-2014 Zoff <zoff@zoff.cc>
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* version 2 as published by the Free Software Foundation.
|
8 |
*
|
9 |
* This program is distributed in the hope that it will be useful,
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12 |
* GNU General Public License for more details.
|
13 |
*
|
14 |
* You should have received a copy of the GNU General Public License
|
15 |
* along with this program; if not, write to the
|
16 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
17 |
* Boston, MA 02110-1301, USA.
|
18 |
*/
|
19 |
|
20 |
|
21 |
#define _USE_MATH_DEFINES 1
|
22 |
#include "config.h"
|
23 |
#ifdef HAVE_UNISTD_H
|
24 |
#include <unistd.h>
|
25 |
#endif
|
26 |
#include <stdio.h>
|
27 |
#include <stdlib.h>
|
28 |
#include <signal.h>
|
29 |
#include <string.h>
|
30 |
#include <fcntl.h>
|
31 |
#include <glib.h>
|
32 |
#include <math.h>
|
33 |
#include <time.h>
|
34 |
#include "debug.h"
|
35 |
#include "navit.h"
|
36 |
#include "callback.h"
|
37 |
#include "gui.h"
|
38 |
#include "item.h"
|
39 |
#include "projection.h"
|
40 |
#include "map.h"
|
41 |
#include "mapset.h"
|
42 |
#include "main.h"
|
43 |
#include "coord.h"
|
44 |
#include "point.h"
|
45 |
#include "transform.h"
|
46 |
#include "param.h"
|
47 |
#include "menu.h"
|
48 |
#include "graphics.h"
|
49 |
#include "popup.h"
|
50 |
#include "data_window.h"
|
51 |
#include "route.h"
|
52 |
#include "navigation.h"
|
53 |
#include "speech.h"
|
54 |
#include "track.h"
|
55 |
#include "vehicle.h"
|
56 |
#include "layout.h"
|
57 |
#include "log.h"
|
58 |
#include "attr.h"
|
59 |
#include "event.h"
|
60 |
#include "file.h"
|
61 |
#include "profile.h"
|
62 |
#include "command.h"
|
63 |
#include "navit_nls.h"
|
64 |
#include "map.h"
|
65 |
#include "util.h"
|
66 |
#include "messages.h"
|
67 |
#include "vehicleprofile.h"
|
68 |
#include "sunriset.h"
|
69 |
#include "bookmarks.h"
|
70 |
#include "map.h"
|
71 |
#ifdef HAVE_API_WIN32_BASE
|
72 |
#include <windows.h>
|
73 |
#include "util.h"
|
74 |
#endif
|
75 |
#ifdef HAVE_API_WIN32_CE
|
76 |
#include "libc.h"
|
77 |
#endif
|
78 |
|
79 |
|
80 |
int main(int argc, char **argv)
|
81 |
{
|
82 |
struct coord_geo g;
|
83 |
struct coord c;
|
84 |
transform_from_geo(projection_mg, &g, &c);
|
85 |
|
86 |
struct pcoord pc;
|
87 |
pc.x = c.x;
|
88 |
pc.y = c.y;
|
89 |
pc.pro = projection_mg;
|
90 |
|
91 |
navit_set_position(global_navit, &pc);
|
92 |
|
93 |
return 0;
|
94 |
}
|
95 |
|
96 |
|
97 |
|