diff options
author | mvglasow <michael -at- vonglasow.com> | 2018-01-25 15:55:12 +0100 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2018-01-25 15:55:12 +0100 |
commit | d5b045721a2f7fcf6adac71d72819ba6652d614c (patch) | |
tree | cd271906488e95237e9fdfb1da5330f0ab2b51f9 /navit/traffic.h | |
parent | c53c246e3989b62b3a772f247598ffd6236db483 (diff) | |
download | navit-d5b045721a2f7fcf6adac71d72819ba6652d614c.tar.gz |
Add:traffic:String conversion for event type
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/traffic.h')
-rw-r--r-- | navit/traffic.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/navit/traffic.h b/navit/traffic.h index 237bbfef9..b9bfcf670 100644 --- a/navit/traffic.h +++ b/navit/traffic.h @@ -409,6 +409,23 @@ enum event_class event_class_new(char * string); const char * event_class_to_string(enum event_class this_); /** + * @brief Creates an event type from its string representation. + * + * @string The string representation (case is ignored) + * + * @return The corresponding `enum event_type`, or `event_invalid` if `string` does not match a known + * identifier + */ +enum event_type event_type_new(char * string); + +/** + * @brief Translates an event type to its string representation. + * + * @return The string representation of the event type + */ +const char * event_type_to_string(enum event_type this_); + +/** * @brief Creates a location fuzziness from its string representation. * * @string The string representation (case is ignored) |