From: Kaj-Michael Lang Date: Sat, 21 Jul 2007 17:53:43 +0000 (+0300) Subject: Add noexit flag. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=432c961d80380a749c6b23416a77be4e6ca152b4;p=mapper Add noexit flag. Move structs from osm-db.c here. --- diff --git a/src/osm.h b/src/osm.h index 716d209..b28a256 100644 --- a/src/osm.h +++ b/src/osm.h @@ -6,6 +6,7 @@ #define W_ROUNDABOUT (1 << 2) #define W_LINK (1 << 3) #define W_AREA (1 << 4) +#define W_NOEXIT (1 << 5) #define ILAT_TURKU 911084432 #define ILON_TURKU 265542144 @@ -64,8 +65,6 @@ typedef enum { NODE_TYPE_MAX=9000 } node_type_t; - - typedef enum { WAY_UNWAYED=0, WAY_MOTORWAY, @@ -89,4 +88,22 @@ typedef enum { WAY_OTHER } way_type_t; +typedef struct _osm_place osm_place; +struct _osm_place { + guint32 id; + node_type_t type; + gchar *name; + gint lat; + gint lon; + gint dist; +}; + +typedef struct _osm_way osm_way; +struct _osm_way { + guint32 id; + gshort type; + guint flags; + GList *nodes; +}; + #endif