navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
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 
struct maptype * maptype_get(const char *name)
Definition: maptype.c:41
struct maptype * next
Definition: maptype.h:29
Represents the map from a single binfile.
Definition: binfile.c:105
void maptype_register(char *name, struct map_priv *(*map_new)(struct map_methods *meth, char *data, char **charset, enum projection *pro))
Definition: maptype.c:30
projection
Definition: projection.h:23
char * name
Definition: maptype.h:27
enum projection pro
Definition: map.h:76
Holds all functions a map plugin has to implement to be useable.
Definition: map.h:75
Definition: maptype.h:26
struct map * map_new(struct attr *parent, struct attr **attrs)
Opens a new map.
Definition: map.c:92
char data
Definition: garmin_img.c:354
char * charset
Definition: map.h:77
char name[0]
Definition: street.c:559