summaryrefslogtreecommitdiff
path: root/navit/maptool/maptool.h
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-07-07 14:28:09 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-07-07 14:28:09 +0000
commitc2a2d6c357208b045d379af41789716065d13392 (patch)
treebffa46b03077fab31156e341c49580b3360c418c /navit/maptool/maptool.h
parent207010808d8f51e987347365d38216891f8c8364 (diff)
downloadnavit-c2a2d6c357208b045d379af41789716065d13392.tar.gz
Refactor:maptool:Introduce struct files_relation_processing to simplify file handling during relation processing.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5806 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/maptool/maptool.h')
-rw-r--r--navit/maptool/maptool.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/navit/maptool/maptool.h b/navit/maptool/maptool.h
index 21efb8930..9bcbe745a 100644
--- a/navit/maptool/maptool.h
+++ b/navit/maptool/maptool.h
@@ -124,6 +124,16 @@ struct country_table;
typedef unsigned long long int osmid;
#define OSMID_FMT LONGLONG_FMT
+/** Files needed for processing a relation. */
+struct files_relation_processing {
+ FILE *ways_in;
+ FILE *ways_out;
+ FILE *nodes_in;
+ FILE *nodes_out;
+ FILE *nodes2_in;
+ FILE *nodes2_out;
+};
+
/* boundaries.c */
struct boundary {
@@ -280,8 +290,8 @@ void osm_add_nd(osmid ref);
osmid item_bin_get_id(struct item_bin *ib);
void flush_nodes(int final);
void sort_countries(int keep_tmpfiles);
-void process_associated_streets(FILE *in, FILE *ways_in, FILE *ways_out, FILE *nodes_in, FILE *nodes_out, FILE *nodes2_in, FILE *nodes2_out);
-void process_house_number_interpolations(FILE *in, FILE *ways_in, FILE *ways_out, FILE *nodes_in, FILE *nodes_out, FILE *nodes2_in, FILE *nodes2_out);
+void process_associated_streets(FILE *in, struct files_relation_processing *files_relproc);
+void process_house_number_interpolations(FILE *in, struct files_relation_processing *files_relproc);
void process_turn_restrictions(FILE *in, FILE *coords, FILE *ways, FILE *ways_index, FILE *out);
void process_turn_restrictions_old(FILE *in, FILE *coords, FILE *ways, FILE *ways_index, FILE *out);
void clear_node_item_buffer(void);