summaryrefslogtreecommitdiff
path: root/navit/graphics.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-07-15 07:05:49 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-07-15 07:05:49 +0000
commitc843e7eff5afb2ce8463d49fee30ba748a164f78 (patch)
tree04624d0d6d5ad0b99ea49294429f041f6b17fa75 /navit/graphics.h
parent79c190da4683eca2b1d2a15ac876d5f20304c26d (diff)
downloadnavit-svn-c843e7eff5afb2ce8463d49fee30ba748a164f78.tar.gz
Fix:Core:Some const problems
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3498 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.h')
-rw-r--r--navit/graphics.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/graphics.h b/navit/graphics.h
index 08eb38c0..f3581d69 100644
--- a/navit/graphics.h
+++ b/navit/graphics.h
@@ -64,7 +64,7 @@ struct graphics_methods {
void (*background_gc)(struct graphics_priv *gr, struct graphics_gc_priv *gc);
struct graphics_priv *(*overlay_new)(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int alpha, int wraparound);
struct graphics_image_priv *(*image_new)(struct graphics_priv *gr, struct graphics_image_methods *meth, char *path, int *w, int *h, struct point *hot, int rotation);
- void *(*get_data)(struct graphics_priv *gr, char *type);
+ void *(*get_data)(struct graphics_priv *gr, const char *type);
void (*image_free)(struct graphics_priv *gr, struct graphics_image_priv *priv);
void (*get_text_bbox)(struct graphics_priv *gr, struct graphics_font_priv *font, char *text, int dx, int dy, struct point *ret, int estimate);
void (*overlay_disable)(struct graphics_priv *gr, int disable);
@@ -143,7 +143,7 @@ int graphics_get_attr(struct graphics *this_, enum attr_type type, struct attr *
struct graphics *graphics_overlay_new(struct graphics *parent, struct point *p, int w, int h, int alpha, int wraparound);
void graphics_overlay_resize(struct graphics *this_, struct point *p, int w, int h, int alpha, int wraparound);
void graphics_init(struct graphics *this_);
-void *graphics_get_data(struct graphics *this_, char *type);
+void *graphics_get_data(struct graphics *this_, const char *type);
void graphics_add_callback(struct graphics *this_, struct callback *cb);
void graphics_remove_callback(struct graphics *this_, struct callback *cb);
struct graphics_font *graphics_font_new(struct graphics *gra, int size, int flags);