/[zanavi_public1]/navit/navit/mapset.h
ZANavi

Contents of /navit/navit/mapset.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (show annotations) (download)
Mon Apr 9 21:27:36 2012 UTC (11 years, 11 months ago) by zoff99
File MIME type: text/plain
File size: 2126 byte(s)
lots of new stuff, tranlsations, bug fixes ...
1 /**
2 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2008 Navit Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public License
7 * version 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
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 attr_iter *mapset_attr_iter_new(void);
38 void mapset_attr_iter_destroy(struct attr_iter *iter);
39 int mapset_add_attr(struct mapset *ms, struct attr *attr);
40 int mapset_add_attr_name(struct mapset *ms, struct attr *attr);
41 int mapset_add_attr_name_str(struct mapset *ms, struct attr *attr,char *map_name_str);
42 int mapset_remove_attr(struct mapset *ms, struct attr *attr);
43 int mapset_get_attr(struct mapset *ms, enum attr_type type, struct attr *attr, struct attr_iter *iter);
44 void mapset_destroy(struct mapset *ms);
45 struct map *mapset_get_map_by_name(struct mapset *ms, char *map_name);
46 struct mapset_handle *mapset_open(struct mapset *ms);
47 struct map *mapset_next(struct mapset_handle *msh, int active);
48 void mapset_close(struct mapset_handle *msh);
49 struct mapset_search *mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial);
50 struct item *mapset_search_get_item(struct mapset_search *this_);
51 void mapset_search_destroy(struct mapset_search *this_);
52 /* end of prototypes */
53 #ifdef __cplusplus
54 }
55 #endif
56 #endif

   
Visit the ZANavi Wiki