static PyObject *
navit_zoom_to_route_py(navitObject *self, PyObject *args)
{
- PyObject *pcoord;
if (!PyArg_ParseTuple(args, ""))
return NULL;
navit_zoom_to_route(self->navit);
map_rect_new_binfile(struct map_priv *map, struct map_selection *sel)
{
struct map_rect_priv *mr;
- struct tile t;
+ struct tile t={};
binfile_check_version(map);
dbg(1,"map_rect_new_binfile\n");
file_next(struct map_rect_priv *mr)
{
int debug=0;
- enum layer_type layer;
for (;;) {
mr->current_file++;
return FALSE;
}
-void
+static void
gui_gtk_datawindow_destroy(struct datawindow_priv *win)
{
if ((!win->gui) || (!win->gui->datawindow)) {
return;
}
+#if 0
void
gui_gtk_datawindow_set_button(struct datawindow_priv *this_, GtkWidget *btn)
{
this_->button = btn;
}
+#endif
static gboolean
keypress(GtkWidget *widget, GdkEventKey *event, struct datawindow_priv *win)
struct callback *vehicle_cb;
};
-
-
-
+#if 0
static void
statusbar_destroy(struct statusbar_priv *this)
{
gtk_label_set_text(GTK_LABEL(this->gps), this->gps_text);
}
+#endif
static char *status_fix2str(int type)
{
char buffer[128];
double lng, lat, direction=0, height=0, speed=0, hdop=0;
int sats=0, qual=0;
- int status;
+ int status=0;
char *dirs[]={_("N"),_("NE"),_("E"),_("SE"),_("S"),_("SW"),_("W"),_("NW"),_("N")};
char *dir;
int dir_idx;
struct coord *p;
struct pcoord pc;
t=navit_get_trans(this->nav);
- struct coord *c=transform_center(t);
p=transform_center(t);
pc.pro=projection_mg;
p->y+=50*cos(transform_get_yaw(t)*M_PI/180);
struct coord *p;
struct pcoord pc;
t=navit_get_trans(this->nav);
- struct coord *c=transform_center(t);
p=transform_center(t);
pc.pro=projection_mg;
p->y-=50*cos(transform_get_yaw(t)*M_PI/180);
}
void
-map_dump_file(struct map *map, char *file)
+map_dump_file(struct map *map, const char *file)
{
FILE *f;
f=fopen(file,"w");
int map_selection_contains_item(struct map_selection *sel, int follow, enum item_type type);
int map_priv_is(struct map *map, struct map_priv *priv);
void map_dump_filedesc(struct map *map, FILE *out);
-void map_dump_file(struct map *map, char *file);
+void map_dump_file(struct map *map, const char *file);
void map_dump(struct map *map);
/* end of prototypes */
#define NAVIT_MAPTYPE_H
struct map_methods;
+enum projection;
struct maptype {
char *name;
};
/* prototypes */
-enum projection;
struct map_methods;
struct map_priv;
struct maptype;
* @returns nothing
*/
void
-navit_set_destination(struct navit *this_, struct pcoord *c, char *description)
+navit_set_destination(struct navit *this_, struct pcoord *c, const char *description)
{
if (c) {
this_->destination=*c;
void navit_zoom_out(struct navit *this_, int factor, struct point *p);
struct navit *navit_new(struct attr *parent, struct attr **attrs);
struct graphics *navit_get_graphics(struct navit *this_);
-void navit_set_destination(struct navit *this_, struct pcoord *c, char *description);
+void navit_set_destination(struct navit *this_, struct pcoord *c, const char *description);
void navit_add_bookmark(struct navit *this_, struct pcoord *c, const char *description);
void navit_say(struct navit *this_, char *text);
void navit_speak(struct navit *this_);