navit  0.5.3-trunk
maptype.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_MAPTYPE_H
21 #define NAVIT_MAPTYPE_H
22 
23 struct map_methods;
24 enum projection;
25 
26 struct maptype {
27  char *name;
28  struct map_priv *(*map_new)(struct map_methods *meth, char *data, char **charset, enum projection *pro);
29  struct maptype *next;
30 };
31 
32 /* prototypes */
33 struct map_methods;
34 struct map_priv;
35 struct maptype;
36 void maptype_register(char *name, struct map_priv *(*map_new)(struct map_methods *meth, char *data, char **charset, enum projection *pro));
37 struct maptype *maptype_get(const char *name);
38 
39 #endif
40 
char data
Definition: garmin_img.c:2
struct map * map_new(struct attr *parent, struct attr **attrs)
Opens a new map.
Definition: map.c:82
void maptype_register(char *name, struct map_priv *(*map_new)(struct map_methods *meth, char *data, char **charset, enum projection *pro))
Definition: maptype.c:29
struct maptype * maptype_get(const char *name)
Definition: maptype.c:40
projection
Definition: projection.h:23
char name[0]
Definition: street.c:3
Holds all functions a map plugin has to implement to be usable.
Definition: map.h:80
enum projection pro
Definition: map.h:81
char * charset
Definition: map.h:82
Represents the map from a single binfile.
Definition: binfile.c:105
Definition: maptype.h:26
char * name
Definition: maptype.h:27
struct maptype * next
Definition: maptype.h:29