Navit SVN

/work/compile/navit/src/navit/mapset.h

00001 
00020 #ifndef NAVIT_MAPSET_H
00021 #define NAVIT_MAPSET_H
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 /* prototypes */
00028 enum attr_type;
00029 struct attr;
00030 struct attr_iter;
00031 struct item;
00032 struct map;
00033 struct mapset;
00034 struct mapset_handle;
00035 struct mapset_search;
00036 struct mapset *mapset_new(struct attr *parent, struct attr **attrs);
00037 struct mapset *mapset_dup(struct mapset *ms);
00038 struct attr_iter *mapset_attr_iter_new(void);
00039 void mapset_attr_iter_destroy(struct attr_iter *iter);
00040 int mapset_add_attr(struct mapset *ms, struct attr *attr);
00041 int mapset_remove_attr(struct mapset *ms, struct attr *attr);
00042 int mapset_get_attr(struct mapset *ms, enum attr_type type, struct attr *attr, struct attr_iter *iter);
00043 void mapset_destroy(struct mapset *ms);
00044 struct map *mapset_get_map_by_name(struct mapset *ms, char*map_name);
00045 struct mapset_handle *mapset_open(struct mapset *ms);
00046 struct map *mapset_next(struct mapset_handle *msh, int active);
00047 void mapset_close(struct mapset_handle *msh);
00048 struct mapset_search *mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial);
00049 struct item *mapset_search_get_item(struct mapset_search *this_);
00050 void mapset_search_destroy(struct mapset_search *this_);
00051 /* end of prototypes */
00052 #ifdef __cplusplus
00053 }
00054 #endif
00055 #endif