20 #ifndef NAVIT_MAPSET_H
21 #define NAVIT_MAPSET_H
attr_type
Definition: attr.h:34
char type[3]
Definition: garmin_img.c:2
struct mapset_handle * mapset_open(struct mapset *ms)
Returns a new handle for a mapset.
Definition: mapset.c:164
struct mapset * mapset_new(struct attr *parent, struct attr **attrs)
Creates a new, empty mapset.
Definition: mapset.c:53
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:295
int mapset_add_attr(struct mapset *ms, struct attr *attr)
Adds a map to a mapset.
Definition: mapset.c:86
void mapset_attr_iter_destroy(struct attr_iter *iter)
Definition: mapset.c:76
void mapset_destroy(struct mapset *ms)
Destroys a mapset.
Definition: mapset.c:138
void mapset_unref(struct mapset *m)
struct map * mapset_next(struct mapset_handle *msh, int active)
Gets the next map from a mapset handle.
Definition: mapset.c:192
struct item * mapset_search_get_item(struct mapset_search *this_)
Returns the next found item from a mapset search.
Definition: mapset.c:321
struct attr_iter * mapset_attr_iter_new(void *unused)
Definition: mapset.c:72
int mapset_remove_attr(struct mapset *ms, struct attr *attr)
Definition: mapset.c:97
int mapset_get_attr(struct mapset *ms, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: mapset.c:108
void mapset_search_destroy(struct mapset_search *this_)
Destroys a mapset search.
Definition: mapset.c:374
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:230
struct mapset * mapset_dup(struct mapset *ms)
Definition: mapset.c:64
struct mapset * mapset_ref(struct mapset *m)
void mapset_close(struct mapset_handle *msh)
Closes a mapset handle after it is no longer used.
Definition: mapset.c:255
struct attr active
Definition: speech.c:77
void * iter
Definition: config_.c:48
Represents an object on a map.
Definition: item.h:115
Handle for a mapset in use.
Definition: mapset.c:150
Holds information about a search in a mapset.
Definition: mapset.c:266
int partial
Definition: mapset.c:271
struct attr * search_attr
Definition: mapset.c:270
struct map_search * ms
Definition: mapset.c:268
Definition: gpx2navit_txt.h:51