… | |
… | |
37 | */ |
37 | */ |
38 | |
38 | |
39 | #ifndef NAVIT_NAVIT_H |
39 | #ifndef NAVIT_NAVIT_H |
40 | #define NAVIT_NAVIT_H |
40 | #define NAVIT_NAVIT_H |
41 | |
41 | |
|
|
42 | |
42 | #ifdef __cplusplus |
43 | #ifdef __cplusplus |
43 | extern "C" |
44 | extern "C" |
44 | { |
45 | { |
45 | #endif |
46 | #endif |
46 | extern struct gui *main_loop_gui; |
47 | extern struct gui *main_loop_gui; |
… | |
… | |
50 | typedef struct _GList GList; |
51 | typedef struct _GList GList; |
51 | #endif |
52 | #endif |
52 | |
53 | |
53 | extern int allow_gui_internal; |
54 | extern int allow_gui_internal; |
54 | extern int draw_display_at_speed; |
55 | extern int draw_display_at_speed; |
55 | extern int routing_mode; // 0-> normal highway rounting |
56 | extern int routing_mode; // 0-> normal highway routing |
56 | // 1-> normal roads routing |
57 | // 1-> normal roads routing |
57 | // 2-> future use |
58 | // 2-> future use |
58 | extern int offline_search_filter_duplicates; |
59 | extern int offline_search_filter_duplicates; |
59 | extern int offline_search_break_searching; |
60 | extern int offline_search_break_searching; |
60 | extern char *navit_maps_dir; |
61 | extern char *navit_maps_dir; |
61 | extern int cancel_drawing_global; |
62 | extern int cancel_drawing_global; |
|
|
63 | extern int disable_map_drawing; |
62 | extern int global_speak_streetnames; |
64 | extern int global_speak_streetnames; |
63 | |
65 | |
64 | extern int allow_large_mapfiles; |
66 | extern int allow_large_mapfiles; |
65 | extern int cache_size_file; /* cache size in bytes */ |
67 | extern int cache_size_file; /* cache size in bytes */ |
66 | extern int draw_polylines_fast; // 1 -> dont draw circles at the end of polylines 0-> do draw circles |
68 | extern int draw_polylines_fast; // 1 -> dont draw circles at the end of polylines 0-> do draw circles |
67 | |
69 | |
68 | extern int limit_order_corrected; |
70 | extern int limit_order_corrected; |
|
|
71 | extern int shift_order; |
69 | extern int global_search_street_size_factor; |
72 | extern int global_search_street_size_factor; |
|
|
73 | extern int enable_water_from_relations; |
|
|
74 | extern int hold_drawing; |
|
|
75 | |
|
|
76 | extern long long draw_lines_count_2; |
|
|
77 | extern long long draw_lines_count_3; |
|
|
78 | extern long long draw_lines_count_4; |
|
|
79 | |
|
|
80 | extern int mapdraw_time[11 + 5]; |
|
|
81 | extern int cur_mapdraw_time_index; |
70 | |
82 | |
71 | /* prototypes */ |
83 | /* prototypes */ |
72 | enum attr_type; |
84 | enum attr_type; |
73 | struct attr; |
85 | struct attr; |
74 | struct attr_iter; |
86 | struct attr_iter; |
… | |
… | |
145 | struct route *navit_get_route(struct navit *this_); |
157 | struct route *navit_get_route(struct navit *this_); |
146 | struct navigation *navit_get_navigation(struct navit *this_); |
158 | struct navigation *navit_get_navigation(struct navit *this_); |
147 | struct displaylist *navit_get_displaylist(struct navit *this_); |
159 | struct displaylist *navit_get_displaylist(struct navit *this_); |
148 | void navit_layout_switch(struct navit *n); |
160 | void navit_layout_switch(struct navit *n); |
149 | int navit_set_vehicle_by_name(struct navit *n, const char *name); |
161 | int navit_set_vehicle_by_name(struct navit *n, const char *name); |
|
|
162 | void navit_layer_set_active(struct navit *this, char *name, int active, int draw); |
|
|
163 | void navit_motion(void *data, struct point *p); |
150 | |
164 | |
151 | void navit_set_cursors(struct navit *this_); |
165 | void navit_set_cursors(struct navit *this_); |
152 | |
166 | |
153 | #include "vehicle.h" |
167 | #include "vehicle.h" |
154 | int navit_add_vehicle(struct navit *this_, struct vehicle *v); |
168 | int navit_add_vehicle(struct navit *this_, struct vehicle *v); |