diff options
author | mvglasow <michael -at- vonglasow.com> | 2018-01-25 14:35:01 +0100 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2018-01-25 14:35:01 +0100 |
commit | bbe7bbf3e0a6d758640336d9c0a7aedccae253b2 (patch) | |
tree | a3c4b5796a051e91aa9adb958ce39c11a9f78b11 /navit/traffic.h | |
parent | ea614d5efdc095b8c8ac56013304581fd3ad905f (diff) | |
download | navit-bbe7bbf3e0a6d758640336d9c0a7aedccae253b2.tar.gz |
Add:traffic:String conversion for location_fuzziness and location_ramps
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/traffic.h')
-rw-r--r-- | navit/traffic.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/navit/traffic.h b/navit/traffic.h index e7d9b0935..80e3c0ae0 100644 --- a/navit/traffic.h +++ b/navit/traffic.h @@ -390,6 +390,40 @@ struct mapset; struct traffic; /** + * @brief Creates a location fuzziness from its string representation. + * + * @string The string representation (case is ignored) + * + * @return The corresponding `enum location_fuzziness`, or `location_fuzziness_none` if `string` does + * not match a known identifier + */ +enum location_fuzziness location_fuzziness_new(char * string); + +/** + * @brief Translates location fuzziness to its string representation. + * + * @return The string representation of the location fuzziness, or NULL for `location_fuzziness_none` + */ +const char * location_fuzziness_to_string(enum location_fuzziness this_); + +/** + * @brief Creates an `enum location_ramps` from its string representation. + * + * @string The string representation (case is ignored) + * + * @return The corresponding `enum location_ramps`, or `location_ramps_none` if `string` does + * not match a known identifier + */ +enum location_ramps location_ramps_new(char * string); + +/** + * @brief Translates an `enum location_ramps` to its string representation. + * + * @return The string representation + */ +const char * location_ramps_to_string(enum location_ramps this_); + +/** * @brief Creates a new `traffic_point`. * * It is the responsibility of the caller to destroy all references passed to this function. This can be |