Navit SVN

/work/compile/navit/src/navit/navigation.h

00001 
00020 #ifndef NAVIT_NAVIGATION_H
00021 #define NAVIT_NAVIGATION_H
00022 
00023 #define FEET_PER_METER 3.2808399
00024 #define FEET_PER_MILE  5280
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 /* prototypes */
00030 enum attr_type;
00031 enum item_type;
00032 struct attr;
00033 struct attr_iter;
00034 struct callback;
00035 struct map;
00036 struct navigation;
00037 struct route;
00038 int navigation_get_attr(struct navigation *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
00039 int navigation_set_attr(struct navigation *this_, struct attr *attr);
00040 struct navigation *navigation_new(struct attr *parent, struct attr **attrs);
00041 int navigation_set_announce(struct navigation *this_, enum item_type type, int *level);
00042 void navigation_destroy(struct navigation *this_);
00043 int navigation_register_callback(struct navigation *this_, enum attr_type type, struct callback *cb);
00044 void navigation_unregister_callback(struct navigation *this_, enum attr_type type, struct callback *cb);
00045 struct map *navigation_get_map(struct navigation *this_);
00046 void navigation_set_route(struct navigation *this_, struct route *route);
00047 void navigation_init(void);
00048 /* end of prototypes */
00049 #ifdef __cplusplus
00050 }
00051 #endif
00052 
00053 #endif