navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
mapset.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_MAPSET_H
21 #define NAVIT_MAPSET_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /* prototypes */
28 enum attr_type;
29 struct attr;
30 struct attr_iter;
31 struct item;
32 struct map;
33 struct mapset;
34 struct mapset_handle;
35 struct mapset_search;
36 struct mapset *mapset_new(struct attr *parent, struct attr **attrs);
37 struct mapset *mapset_dup(struct mapset *ms);
38 struct attr_iter *mapset_attr_iter_new(void);
40 int mapset_add_attr(struct mapset *ms, struct attr *attr);
41 int mapset_remove_attr(struct mapset *ms, struct attr *attr);
42 int mapset_get_attr(struct mapset *ms, enum attr_type type, struct attr *attr, struct attr_iter *iter);
43 void mapset_destroy(struct mapset *ms);
44 struct map *mapset_get_map_by_name(struct mapset *ms, const char*map_name);
45 struct mapset_handle *mapset_open(struct mapset *ms);
46 struct map *mapset_next(struct mapset_handle *msh, int active);
47 void mapset_close(struct mapset_handle *msh);
48 struct mapset_search *mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial);
49 struct item *mapset_search_get_item(struct mapset_search *this_);
50 void mapset_search_destroy(struct mapset_search *this_);
51 struct mapset * mapset_ref(struct mapset* m);
52 void mapset_unref(struct mapset *m);
53 /* end of prototypes */
54 #ifdef __cplusplus
55 }
56 #endif
57 #endif
attr_type
Definition: attr.h:34
struct attr active
Definition: speech.c:82
tuple iter
Definition: eval.py:8
Definition: gpx2navit_txt.h:51
struct mapset_handle * mapset_open(struct mapset *ms)
Returns a new handle for a mapset.
Definition: mapset.c:181
Definition: item.h:99
A mapset.
Definition: mapset.c:44
struct attr_iter * mapset_attr_iter_new(void)
Definition: mapset.c:79
struct map * mapset_get_map_by_name(struct mapset *ms, const char *map_name)
Gets a map from the mapset by name.
Definition: mapset.c:242
int mapset_add_attr(struct mapset *ms, struct attr *attr)
Adds a map to a mapset.
Definition: mapset.c:97
void mapset_attr_iter_destroy(struct attr_iter *iter)
Definition: mapset.c:85
struct mapset * mapset_new(struct attr *parent, struct attr **attrs)
Creates a new, empty mapset.
Definition: mapset.c:58
Handle for a mapset in use.
Definition: mapset.c:167
struct mapset_search * mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial)
Starts a search on a mapset.
Definition: mapset.c:310
struct map * mapset_next(struct mapset_handle *msh, int active)
Gets the next map from a mapset handle.
Definition: mapset.c:203
Definition: config_.c:48
struct mapset * mapset_ref(struct mapset *m)
Definition: attr.h:156
Holds information about a search in a mapset.
Definition: mapset.c:281
void mapset_destroy(struct mapset *ms)
Destroys a mapset.
Definition: mapset.c:154
struct item * mapset_search_get_item(struct mapset_search *this_)
Returns the next found item from a mapset search.
Definition: mapset.c:340
struct map_search * ms
Definition: mapset.c:283
Holds information about a map.
Definition: map.c:60
void mapset_unref(struct mapset *m)
void mapset_search_destroy(struct mapset_search *this_)
Destroys a mapset search.
Definition: mapset.c:394
char type[3]
Definition: garmin_img.c:130
struct mapset * mapset_dup(struct mapset *ms)
Definition: mapset.c:70
void mapset_close(struct mapset_handle *msh)
Closes a mapset handle after it is no longer used.
Definition: mapset.c:269
int mapset_get_attr(struct mapset *ms, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: mapset.c:123
int mapset_remove_attr(struct mapset *ms, struct attr *attr)
Definition: mapset.c:110
int partial
Definition: mapset.c:286
struct attr * search_attr
Definition: mapset.c:285