summaryrefslogtreecommitdiff
path: root/navit/traffic.h
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2017-11-29 18:36:15 +0100
committermvglasow <michael -at- vonglasow.com>2017-11-29 18:36:15 +0100
commitc86c107dae333fee628e78bf7327dfb187560630 (patch)
treec0235f9b83ee83d8b888d107da72d6b01418fd2f /navit/traffic.h
parentbfffc8f916ed668f2dbdfd3d35d8a45949e289b7 (diff)
downloadnavit-c86c107dae333fee628e78bf7327dfb187560630.tar.gz
Add:traffic:Store mapset and route
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/traffic.h')
-rw-r--r--navit/traffic.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/navit/traffic.h b/navit/traffic.h
index 03aa41f9a..ceb96ee91 100644
--- a/navit/traffic.h
+++ b/navit/traffic.h
@@ -375,6 +375,10 @@ struct traffic_message {
struct traffic_event ** events; /*!< Points to an array of pointers to the events for this message. */
};
+struct map;
+struct mapset;
+struct traffic;
+
/**
* @brief Creates a new {@code traffic_point}.
*
@@ -717,6 +721,23 @@ struct traffic_event * traffic_message_get_event(struct traffic_message * this_,
*/
void traffic_init(void);
+/**
+ * @brief Sets the mapset for the traffic plugin.
+ *
+ * This sets the mapset from which the segments affected by a traffic report will be retrieved.
+ *
+ * @param this_ The traffic plugin instance
+ * @param ms The mapset
+ */
+void traffic_set_mapset(struct traffic *this_, struct mapset *ms);
+
+/**
+ * @brief Sets the route for the traffic plugin.
+ *
+ * This sets the route which may get notified by the traffic plugin if traffic distortions change.
+ */
+void traffic_set_route(struct traffic *this_, struct route *rt);
+
/* end of prototypes */
#ifdef __cplusplus
}