Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /trunk/src/functions.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25 - (show annotations) (download) (as text)
Sat Jan 10 11:14:41 2009 UTC (16 years, 2 months ago) by amb
File MIME type: text/x-chdr
File size: 1449 byte(s)
Changed after nodes, ways and segment changes.

1 /***************************************
2 $Header: /home/amb/CVS/routino/src/functions.h,v 1.6 2009-01-10 11:14:41 amb Exp $
3
4 Header file for function prototypes
5 ******************/ /******************
6 Written by Andrew M. Bishop
7
8 This file Copyright 2008,2009 Andrew M. Bishop
9 It may be distributed under the GNU Public License, version 2, or
10 any higher version. See section COPYING of the GNU Public license
11 for conditions under which this file may be redistributed.
12 ***************************************/
13
14
15 #ifndef FUNCTIONS_H
16 #define FUNCTIONS_H /*+ To stop multiple inclusions. +*/
17
18 #include <stdio.h>
19
20 #include "types.h"
21
22 /* In osmparser.c */
23
24 int ParseXML(FILE *file,NodesMem *OSMNodes,SegmentsMem *OSMSegments,WaysMem *OSMWays);
25
26
27 /* In supersegments.c */
28
29 void LoadSuperSegmentList(const char *filename);
30 void SaveSuperSegmentList(const char *filename);
31
32 SuperSegment *FindFirstSuperSegment(node_t node);
33 SuperSegment *FindNextSuperSegment(SuperSegment *segment);
34
35 void ChooseSuperSegments(void);
36
37 void SortSuperSegmentList(void);
38
39 void FixupSuperSegmentLengths(void);
40
41
42 /* In files.c */
43
44 void *MapFile(const char *filename);
45
46 void UnMapFile(void *address);
47
48 int WriteFile(const char *filename,void *address,size_t length);
49
50
51 /* In optimiser.c */
52
53 void FindRoute(Nodes *nodes,Segments *segments,node_t start,node_t finish);
54 void PrintRoute(Segments *segments,Ways *ways,node_t start,node_t finish);
55
56
57 #endif /* FUNCTIONS_H */

Properties

Name Value
cvs:description Function prototypes.