diff options
author | mvglasow <michael -at- vonglasow.com> | 2018-02-02 19:46:59 +0100 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2018-02-02 19:46:59 +0100 |
commit | 5d1a0fa213b41320f72926fac46556e4368bc730 (patch) | |
tree | ccaa5c4e6dbbb4b27e8a4ac28e21f70ef84aa354 /navit/traffic.h | |
parent | 410b529b853511f831c4b8fae45628a5eb7704a1 (diff) | |
download | navit-5d1a0fa213b41320f72926fac46556e4368bc730.tar.gz |
Add:traffic:Reject malformed messages read from XML
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/traffic.h')
-rw-r--r-- | navit/traffic.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/navit/traffic.h b/navit/traffic.h index 8cd41b12f..4988cc6ba 100644 --- a/navit/traffic.h +++ b/navit/traffic.h @@ -60,6 +60,7 @@ extern "C" { /** * @brief Classes for events. */ +/* If additional event classes are introduced, traffic_event_is_valid() must be adapted to recognize them. */ enum event_class { event_class_invalid = 0, /*!< Invalid event which should be ignored */ event_class_congestion, /*!< Traffic congestion, typically indicating the approximate speed */ @@ -71,6 +72,11 @@ enum event_class { /** * @brief Event types. */ +/* If additional events are introduced, remember to do the following: + * - If the events belong to an existing class, insert them right after the last existing event for that class. + * - If the events belong to a new class, insert them at the end of the list. + * - Always keep events of the same class together. + * - After adding events (of any class) at the end of the list, adapt traffic_event_is_valid() to recognize them. */ enum event_type { event_invalid = 0, /*!< Invalid event which should be ignored */ event_congestion_cleared, /*!< Traffic congestion cleared */ |