Add license files and headers
[navit-package] / navit / mapset.h
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 /* prototypes */
24 struct attr;
25 struct item;
26 struct map;
27 struct mapset;
28 struct mapset_handle;
29 struct mapset_search;
30 struct mapset *mapset_new(void);
31 void mapset_add(struct mapset *ms, struct map *m);
32 void mapset_destroy(struct mapset *ms);
33 struct mapset_handle *mapset_open(struct mapset *ms);
34 struct map *mapset_next(struct mapset_handle *msh, int active);
35 void mapset_close(struct mapset_handle *msh);
36 struct mapset_search *mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial);
37 struct item *mapset_search_get_item(struct mapset_search *this);
38 void mapset_search_destroy(struct mapset_search *this);
39
40 #endif
41