2 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2008 Navit Team
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.
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.
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.
29 #include "projection.h"
34 #define ATTR2(x,y) attr_##y=x,
35 #define ATTR(x) attr_##x,
41 #define AF_ONEWAY (1<<0)
42 #define AF_ONEWAYREV (1<<1)
43 #define AF_NOPASS (AF_ONEWAY|AF_ONEWAYREV)
44 #define AF_ONEWAYMASK (AF_ONEWAY|AF_ONEWAYREV)
45 #define AF_SEGMENTED (1<<2)
55 enum item_type item_type;
56 enum projection projection;
59 struct coord_geo *coord_geo;
61 struct callback *callback;
62 struct vehicle *vehicle;
63 struct layout *layout;
67 struct navigation *navigation;
69 struct pcoord *pcoord;
71 struct graphics *graphics;
72 struct tracking *tracking;
81 enum attr_type attr_from_name(const char *name);
82 char *attr_to_name(enum attr_type attr);
83 struct attr *attr_new_from_text(const char *name, const char *value);
84 char *attr_to_text(struct attr *attr, struct map *map, int pretty);
85 struct attr *attr_search(struct attr **attrs, struct attr *last, enum attr_type attr);
86 int attr_generic_get_attr(struct attr **attrs, struct attr **def_attrs, enum attr_type type, struct attr *attr, struct attr_iter *iter);
87 struct attr **attr_generic_set_attr(struct attr **attrs, struct attr *attr);
88 int attr_data_size(struct attr *attr);
89 void *attr_data_get(struct attr *attr);
90 void attr_data_set(struct attr *attr, void *data);
91 void attr_free(struct attr *attr);
92 struct attr *attr_dup(struct attr *attr);
93 void attr_list_free(struct attr **attrs);
94 struct attr **attr_list_dup(struct attr **attrs);
95 /* end of prototypes */