+#ifndef NAVIT_CALLBACK_H
+#define NAVIT_CALLBACK_H
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
+
+#endif
+
+#ifndef NAVIT_COLOR_H
+#define NAVIT_COLOR_H
+
struct color {
int r,g,b;
};
+
+#endif
+#ifndef NAVIT_COMPASS_H
+#define NAVIT_COMPASS_H
+
struct compass * compass_new(struct container *co);
void compass_draw(struct compass *comp, struct container *co);
+
+#endif
-#ifndef COORD_H
-#define COORD_H
+#ifndef NAVIT_COORD_H
+#define NAVIT_COORD_H
/*! A integer mercator coordinate */
struct coord {
+#ifndef NAVIT_COUNTRY_H
+#define NAVIT_COUNTRY_H
+
/* prototypes */
struct attr;
struct country_search;
struct country_search *country_search_new(struct attr *search, int partial);
struct item *country_search_get_item(struct country_search *this);
void country_search_destroy(struct country_search *this);
+
+#endif
+#ifndef NAVIT_CURSOR_H
+#define NAVIT_CURSOR_H
+
/* prototypes */
struct callback;
struct color;
struct cursor *cursor_new(struct graphics *gra, struct vehicle *v, struct color *c, struct transformation *t);
void cursor_add_callback(struct cursor *this, struct callback *cb);
/* end of prototypes */
+
+#endif
+#ifndef NAVIT_DATA_H
+#define NAVIT_DATA_H
+
static inline unsigned char
get_u8(unsigned char **p)
{
#define L(x) ({ unsigned char *t=(unsigned char *)&(x); t[0] | (t[1] << 8) | (t[2] << 16) | (t[3] << 24); })
+#endif
+
+#ifndef NAVIT_DATA_WINDOW_H
+#define NAVIT_DATA_WINDOW_H
+
struct datawindow;
struct param_list;
struct datawindow_priv;
void datawindow_destroy(struct datawindow *win);
void datawindow_add(struct datawindow *win, struct param_list *param, int count);
void datawindow_mode(struct datawindow *win, int start);
+
+#endif
+
+#ifndef NAVIT_DATA_WINDOW_INT_H
+#define NAVIT_DATA_WINDOW_INT_H
struct data_window {
GtkWidget *window;
GtkWidget *treeview;
void(*callback)(struct data_window *, char **cols);
};
+
+#endif
+
+#ifndef NAVIT_DEBUG_H
+#define NAVIT_DEBUG_H
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
+
+#endif
+
+#ifndef NAVIT_DESTINATION_H
+#define NAVIT_DESTINATION_H
+
/* prototypes */
struct navit;
int destination_address(struct navit *nav);
/* end of prototypes */
+
+#endif
+
+#ifndef NAVIT_DRAW_INFO_H
+#define NAVIT_DRAW_INFO_H
+
struct draw_info {
struct container *co;
int display;
int limit;
};
+
+#endif
+
+#ifndef NAVIT_FILE_H
+#define NAVIT_FILE_H
+
#include "param.h"
struct file {
void file_wordexp_destroy(struct file_wordexp *wexp);
int file_get_param(struct file *file, struct param_list *param, int count);
/* end of prototypes */
+
+#endif
+
+#ifndef NAVIT_GRAPHICS_H
+#define NAVIT_GRAPHICS_H
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
+
+#endif
+
+#ifndef NAVIT_GTKEXT_H
+#define NAVIT_GTKEXT_H
+
void gdk_gc_set_fill_rule(GdkGC *gc, GdkFillRule fill_rule);
+
+#endif
+#ifndef NAVIT_GUI_H
+#define NAVIT_GUI_H
+
struct navit;
struct gui_priv;
struct menu_methods;
int gui_has_main_loop(struct gui *this_);
int gui_run_main_loop(struct gui *this_);
/* end of prototypes */
+
+#endif
+
+#ifndef NAVIT_ITEM_H
+#define NAVIT_ITEM_H
enum item_type {
void *item_hash_lookup(struct item_hash *h, struct item *item);
void item_hash_destroy(struct item_hash *h);
/* end of prototypes */
+
+#endif
+
+#ifndef NAVIT_LAYER_H
+#define NAVIT_LAYER_H
+
enum layer_type {
layer_town=0,
layer_street,
layer_poly,
layer_end,
};
+
+#endif
+
+#ifndef NAVIT_LAYOUT_H
+#define NAVIT_LAYOUT_H
+
#include "item.h"
#include "color.h"
struct element *label_new(int label_size);
struct element *icon_new(const char *src);
struct element *image_new(void);
+
+#endif
+
+#ifndef NAVIT_LOG_H
+#define NAVIT_LOG_H
+
void log_write(char *message, struct file *file, void *data, int size);
void log_apply(struct map_data *map, int files);
+
+#endif
+
+#ifndef NAVIT_MAIN_H
+#define NAVIT_MAIN_H
+
/* prototypes */
struct navit;
void main_add_navit(struct navit *nav);
void main_remove_navit(struct navit *nav);
int main(int argc, char **argv);
/* end of prototypes */
+
+#endif
+
+#ifndef NAVIT_MAP_SHARE_H
+#define NAVIT_MAP_SHARE_H
+
void map_srv_start_poa(CORBA_ORB orb, CORBA_Environment * ev);
CORBA_Object map_srv_start_object(CORBA_Environment * ev, struct container *co);
+
+#endif
+
+#ifndef NAVIT_MAP_H
+#define NAVIT_MAP_H
+
struct map_priv;
struct attr;
#include "coord.h"
struct item *map_search_get_item(struct map_search *this);
void map_search_destroy(struct map_search *this);
/* end of prototypes */
+
+#endif
+#ifndef NAVIT_MAP_DATA_H
+#define NAVIT_MAP_DATA_H
enum file_index {
file_border_ply=0,
void map_data_foreach(struct map_data *mdata, int file, struct transformation *t, int limit,
void(*func)(struct block_info *, unsigned char *, unsigned char *, void *), void *data);
+
+#endif
+
+#ifndef NAVIT_MAPSET_H
+#define NAVIT_MAPSET_H
+
/* prototypes */
struct attr;
struct item;
struct mapset_search *mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial);
struct item *mapset_search_get_item(struct mapset_search *this);
void mapset_search_destroy(struct mapset_search *this);
+
+#endif
+
+#ifndef NAVIT_MAPTYPE_H
+#define NAVIT_MAPTYPE_H
+
struct map_methods;
struct maptype {
struct maptype;
void maptype_register(char *name, struct map_priv *(*map_new)(struct map_methods *meth, char *data, char **charset, enum projection *pro));
struct maptype *maptype_get(const char *name);
+
+#endif
+
+#ifndef NAVIT_MENU_H
+#define NAVIT_MENU_H
+
enum menu_type {
menu_type_submenu,
menu_type_menu,
struct menu *menu_add(struct menu *menu, char *name, enum menu_type type, void (*callback)(struct menu *menu, void *data1, void *data2), void *data1, void *data2);
void menu_set_toggle(struct menu *menu, int active);
int menu_get_toggle(struct menu *menu);
+
+#endif
+
+#ifndef NAVIT_NAVIGATION_H
+#define NAVIT_NAVIGATION_H
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
+
+#endif
+#ifndef NAVIT_NAVIT_H
+#define NAVIT_NAVIT_H
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
+
+#endif
+
+#ifndef NAVIT_OSD_H
+#define NAVIT_OSD_H
+
struct osd_methods {
void (*osd_destroy)(struct osd_priv *osd);
};
struct osd;
struct osd *osd_new(struct navit *nav, const char *type, struct attr **attrs);
/* end of prototypes */
+
+#endif
+
+#ifndef NAVIT_PARAM_H
+#define NAVIT_PARAM_H
+
struct param_list {
char *name;
char *value;
void param_add_dec(char *name, unsigned long value, struct param_list **param, int *count);
void param_add_hex(char *name, unsigned long value, struct param_list **param, int *count);
void param_add_hex_sig(char *name, long value, struct param_list **param, int *count);
+
+#endif
+
+#ifndef NAVIT_PHRASE_H
+#define NAVIT_PHRASE_H
+
void phrase_route_calc(void *speech);
void phrase_route_calculated(void *speech, void *route);
+
+#endif
+
#ifdef __cplusplus
}
#endif
+
+
-#ifndef POINT_H
-#define POINT_H
+#ifndef NAVIT_POINT_H
+#define NAVIT_POINT_H
struct point {
int x;
+#ifndef NAVIT_POPUP_H
+#define NAVIT_POPUP_H
+
struct navit;
struct point;
void popup(struct navit *nav, int button, struct point *p);
+
+#endif
+#ifndef NAVIT_PROFILE_H
+#define NAVIT_PROFILE_H
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
+
+#endif
+
+#ifndef NAVIT_PROJECTION_H
+#define NAVIT_PROJECTION_H
+
enum projection {
projection_none, projection_mg, projection_garmin
};
+
+#endif
+
+#ifndef NAVIT_ROUTE_H
+#define NAVIT_ROUTE_H
+
struct route_crossing {
long segid;
int dir;
#define route_item_first type_street_0
#define route_item_last type_ferry
-
/* prototypes */
enum item_type;
struct coord;
struct displaylist;
struct item;
+
+#ifndef STREETDATA
+#define STREETDATA
+struct street_data {
+ struct item item;
+ int count;
+ int limit;
+ struct coord c[0];
+};
+#endif
+
struct map_selection;
struct mapset;
struct route;
void route_info_close(struct route_info_handle *h);
void route_draw(struct route *this, struct transformation *t, struct displaylist *dsp);
/* end of prototypes */
+
+#endif
+
+#ifndef NAVIT_SEARCH_H
+#define NAVIT_SEARCH_H
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
+
+#endif
+
+#ifndef NAVIT_SPEECH_H
+#define NAVIT_SPEECH_H
+
struct speech_priv;
struct speech_methods {
int speech_sayf(struct speech *this_, const char *format, ...);
void speech_destroy(struct speech *this_);
/* end of prototypes */
+
+#endif
+
+#ifndef NAVIT_STATUSBAR_H
+#define NAVIT_STATUSBAR_H
+
struct route;
struct statusbar_priv;
struct point;
};
/* prototypes */
+
+#endif
+
+#ifndef NAVIT_TRACK_H
+#define NAVIT_TRACK_H
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
+
+#endif
+#ifndef NAVIT_TRANSFORM_H
+#define NAVIT_TRANSFORM_H
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
+
+#endif
-#ifndef _TYPES_H_
-#define _TYPES_H_
+#ifndef NAVIT_TYPES_H
+#define NAVIT_TYPES_H
#include <stdint.h>
typedef int8_t s8;
+#ifndef NAVIT_types_H
+#define NAVIT_types_H
+
#include <ctype.h>
void strtoupper(char *dest, const char *src);
void strtolower(char *dest, const char *src);
GList * g_hash_to_list(GHashTable *h);
+
+#endif
+
+#ifndef NAVIT_VEHICLE_H
+#define NAVIT_VEHICLE_H
+
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
+#endif
+
+#ifndef NAVIT_XMLCONFIG_H
+#define NAVIT_XMLCONFIG_H
struct container;
gboolean config_load(char *filename,GError **error);
+
+#endif
+