forked from mkoloberdin/waze
/
roadmap_driver.h
60 lines (49 loc) · 2.04 KB
/
roadmap_driver.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* roadmap_driver.h - a driver manager for the RoadMap application.
*
* LICENSE:
*
* Copyright 2002 Pascal F. Martin
*
* This file is part of RoadMap.
*
* RoadMap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* RoadMap is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RoadMap; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* SYNOPSYS:
*
* This module is, as a matter of fact, an extension to roadmap_gps.c
* that deals with managing external drivers and exchanging information
* with these drivers. The information is coded using the NMEA syntax,
* so that we benefit from all the existing infrastructure.
*
* The function roadmap_driver_publish () should be called either
* periodically, or when the location of the RoadMap vehicule changes
* and advertise the current position and cinematic to all drivers.
*
* The other function are similar to the roadmap_gps.c equivalents.
*/
#ifndef INCLUDED__ROADMAP_DRIVER__H
#define INCLUDED__ROADMAP_DRIVER__H
#include "roadmap_io.h"
#include "roadmap_gps.h"
void roadmap_driver_initialize (void);
void roadmap_driver_register_link_control
(roadmap_gps_link_control add, roadmap_gps_link_control remove);
void roadmap_driver_register_server_control
(roadmap_gps_link_control add, roadmap_gps_link_control remove);
void roadmap_driver_activate (void);
void roadmap_driver_input (RoadMapIO *io);
void roadmap_driver_accept (RoadMapIO *io);
void roadmap_driver_shutdown (void);
#endif // INCLUDED__ROADMAP_DRIVER__H