struct attr *ret;
struct coord_geo *g;
struct coord c;
- char *pos,*type_str,*str,*tok,*saveptr;
+ char *pos,*type_str,*str,*tok,*saveptr=NULL;
int min,max,count;
ret=g_new0(struct attr, 1);
struct attr *attr_search(struct attr **attrs, struct attr *last, enum attr_type attr);
int attr_generic_get_attr(struct attr **attrs, struct attr **def_attrs, enum attr_type type, struct attr *attr, struct attr_iter *iter);
struct attr **attr_generic_set_attr(struct attr **attrs, struct attr *attr);
+struct attr **attr_generic_add_attr(struct attr **attrs, struct attr *attr);
int attr_data_size(struct attr *attr);
void *attr_data_get(struct attr *attr);
void attr_data_set(struct attr *attr, void *data);
int debug_level=0,segv_level=0;
static int dummy;
static GHashTable *debug_hash;
-static char *gdb_program;
+static const char *gdb_program;
static FILE *debug_fp;
{
#if defined(_WIN32) || defined(__CEGCC__)
#else
+#include <unistd.h>
char buffer[256];
if (segv_level > 1)
sprintf(buffer, "gdb -ex bt %s %d", gdb_program, getpid());
void file_wordexp_destroy(struct file_wordexp *wexp);
int file_get_param(struct file *file, struct param_list *param, int count);
int file_version(struct file *file, int byname);
+void *file_get_os_handle(struct file *file);
void file_init(void);
/* end of prototypes */
struct point;
struct transformation;
struct callback;
+struct itemgra;
struct graphics *graphics_new(struct attr *parent, struct attr **attrs);
int graphics_get_attr(struct graphics *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
struct graphics *graphics_overlay_new(struct graphics *parent, struct point *p, int w, int h, int alpha);
void graphics_gc_set_linewidth(struct graphics_gc *gc, int width);
void graphics_gc_set_dashes(struct graphics_gc *gc, int width, int offset, unsigned char dash_list[], int n);
struct graphics_image * graphics_image_new_scaled(struct graphics *gra, char *path, int w, int h);
+struct graphics_image * graphics_image_new_scaled_rotated(struct graphics *gra, char *path, int w, int h, int rotate);
struct graphics_image *graphics_image_new(struct graphics *gra, char *path);
void graphics_image_free(struct graphics *gra, struct graphics_image *img);
void graphics_draw_restore(struct graphics *this_, struct point *p, int w, int h);
int graphics_ready(struct graphics *this_);
void graphics_displaylist_draw(struct graphics *gra, struct displaylist *displaylist, struct transformation *trans, struct layout *l, int callback);
void graphics_displaylist_move(struct displaylist *displaylist, int dx, int dy);
+void graphics_draw_itemgra(struct graphics *gra, struct itemgra *itm, struct transformation *t);
void graphics_draw(struct graphics *gra, struct displaylist *displaylist, GList *mapsets, struct transformation *trans, struct layout *l);
struct displaylist_handle *graphics_displaylist_open(struct displaylist *displaylist);
struct displayitem *graphics_displaylist_next(struct displaylist_handle *dlh);
*/
#include <glib.h>
+#include "debug.h"
#include "projection.h"
#include "map.h"
#include "maptype.h"
int navit_check_route(struct navit *this_);
int navit_get_height(struct navit *this_);
void navit_ignore_button(struct navit *this_);
+void navit_ignore_graphics_events(struct navit *this_, int ignore);
int navit_handle_button(struct navit *this_, int pressed, int button, struct point *p, struct callback *popup_callback);
void navit_handle_motion(struct navit *this_, struct point *p);
void navit_zoom_in(struct navit *this_, int factor, struct point *p);
int i, count;
char **array;
char *name;
- struct plugin *pl;
+ struct plugin *pl=NULL;
struct plugins *pls;
pls=parent->u.plugins;
static struct item *
rm_get_item(struct map_rect_priv *mr)
{
- struct route *r = mr->mpriv->route;
- struct route_path_segment *seg = mr->seg;
dbg(1,"enter\n", mr->pos);
mr->seg=mr->seg_next;
void transform_set_angle(struct transformation *t, int angle);
int transform_get_angle(struct transformation *this_, int angle);
void transform_set_screen_selection(struct transformation *t, struct map_selection *sel);
+void transform_set_screen_center(struct transformation *t, struct point *p);
void transform_get_size(struct transformation *t, int *width, int *height);
void transform_setup(struct transformation *t, struct pcoord *c, int scale, int angle);
void transform_setup_source_rect(struct transformation *t);
int transform_within_dist_polyline(struct coord *ref, struct coord *c, int count, int close, int dist);
int transform_within_dist_polygon(struct coord *ref, struct coord *c, int count, int dist);
int transform_within_dist_item(struct coord *ref, enum item_type type, struct coord *c, int count, int dist);
+void transform_destroy(struct transformation *t);
/* end of prototypes */
#ifdef __cplusplus
}