summaryrefslogtreecommitdiff
path: root/navit/traffic.h
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2018-01-25 14:35:01 +0100
committermvglasow <michael -at- vonglasow.com>2018-01-25 14:35:01 +0100
commitbbe7bbf3e0a6d758640336d9c0a7aedccae253b2 (patch)
treea3c4b5796a051e91aa9adb958ce39c11a9f78b11 /navit/traffic.h
parentea614d5efdc095b8c8ac56013304581fd3ad905f (diff)
downloadnavit-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.h34
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