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 2 - (show annotations) (download) (as text)
Wed Dec 31 12:21:27 2008 UTC (16 years, 2 months ago) by amb
File MIME type: text/x-chdr
File size: 1624 byte(s)
Initial revision

1 /***************************************
2 $Header: /home/amb/CVS/routino/src/functions.h,v 1.1 2008-12-31 12:20:17 amb Exp $
3
4 Header file for function prototypes
5 ******************/ /******************
6 Written by Andrew M. Bishop
7
8 This file Copyright 2008 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
23 /* In osmparser.c */
24
25 int ParseXML(FILE *file);
26
27
28 /* In nodes.c */
29
30 int NewNodeList(void);
31
32 int LoadNodeList(const char *filename);
33 int SaveNodeList(const char *filename);
34
35 Node *FindNode(node_t id);
36
37 void AppendNode(node_t id,latlong_t latitude,latlong_t longitude);
38 void SortNodeList(void);
39
40
41 /* In segments.c */
42
43 int NewSegmentList(void);
44
45 int LoadSegmentList(const char *filename);
46 int SaveSegmentList(const char *filename);
47
48 Segment *FindFirstSegment(node_t node);
49 Segment *FindNextSegment(Segment *segment);
50
51 void AppendSegment(node_t node1,node_t node2,way_t way,distance_t distance,duration_t duration);
52 void SortSegmentList(void);
53
54 distance_t SegmentLength(Node *node1,Node *node2);
55
56
57 /* In files.c */
58
59 void *MapFile(const char *filename);
60
61 void UnMapFile(void *address);
62
63 int WriteFile(const char *filename,void *address,size_t length);
64
65
66 /* In optimiser.c */
67
68 void FindRoute(node_t start,node_t finish);
69 void PrintRoute(node_t start,node_t finish);
70
71 #endif /* FUNCTIONS_H */

Properties

Name Value
cvs:description Function prototypes.