1 |
/**
|
2 |
* Navit, a modular navigation system.
|
3 |
* Copyright (C) 2005-2008 Navit Team
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU Library 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 Library General Public License for more details.
|
13 |
*
|
14 |
* You should have received a copy of the GNU Library General Public
|
15 |
* License 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 |
#ifndef NAVIT_NAVIGATION_H
|
21 |
#define NAVIT_NAVIGATION_H
|
22 |
|
23 |
#define FEET_PER_METER 3.2808399
|
24 |
#define FEET_PER_MILE 5280
|
25 |
|
26 |
#ifdef __cplusplus
|
27 |
extern "C" {
|
28 |
#endif
|
29 |
/* prototypes */
|
30 |
enum attr_type;
|
31 |
enum item_type;
|
32 |
struct attr;
|
33 |
struct attr_iter;
|
34 |
struct callback;
|
35 |
struct map;
|
36 |
struct navigation;
|
37 |
struct route;
|
38 |
int navigation_get_attr(struct navigation *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
|
39 |
int navigation_set_attr(struct navigation *this_, struct attr *attr);
|
40 |
struct navigation *navigation_new(struct attr *parent, struct attr **attrs);
|
41 |
int navigation_set_announce(struct navigation *this_, enum item_type type, int *level);
|
42 |
void navigation_destroy(struct navigation *this_);
|
43 |
int navigation_register_callback(struct navigation *this_, enum attr_type type, struct callback *cb);
|
44 |
void navigation_unregister_callback(struct navigation *this_, enum attr_type type, struct callback *cb);
|
45 |
struct map *navigation_get_map(struct navigation *this_);
|
46 |
void navigation_set_route(struct navigation *this_, struct route *route);
|
47 |
void navigation_init(void);
|
48 |
/* end of prototypes */
|
49 |
#ifdef __cplusplus
|
50 |
}
|
51 |
#endif
|
52 |
|
53 |
#endif
|