Add:Translations:Added Faroese translation
[navit-package] / navit / navigation.h
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 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 /* prototypes */
27 enum attr_type;
28 enum item_type;
29 struct attr;
30 struct attr_iter;
31 struct callback;
32 struct map;
33 struct navigation;
34 struct route;
35 int navigation_get_attr(struct navigation *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
36 struct navigation *navigation_new(struct attr *parent, struct attr **attrs);
37 int navigation_set_announce(struct navigation *this_, enum item_type type, int *level);
38 void navigation_destroy(struct navigation *this_);
39 int navigation_register_callback(struct navigation *this_, enum attr_type type, struct callback *cb);
40 void navigation_unregister_callback(struct navigation *this_, enum attr_type type, struct callback *cb);
41 struct map *navigation_get_map(struct navigation *this_);
42 void navigation_set_route(struct navigation *this_, struct route *route);
43 void navigation_init(void);
44 /* end of prototypes */
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif