diff options
author | mvglasow <michael -at- vonglasow.com> | 2018-08-07 22:23:53 +0200 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2018-08-07 22:25:09 +0200 |
commit | 36e2a61b17c48aa034654cfd7b209f96ac8c3fe3 (patch) | |
tree | e7901d1860638b10feb8f29f5a6c2d431ab75fe0 | |
parent | b53f038defe9d293b60168b76584e6cedc55d9a8 (diff) | |
download | navit-36e2a61b17c48aa034654cfd7b209f96ac8c3fe3.tar.gz |
Add:traffic:Eliminate return type for traffic_process_messages()
In preparation for asynchronous processing, where this gets meaningless
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r-- | navit/traffic.c | 2 | ||||
-rw-r--r-- | navit/traffic.h | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/navit/traffic.c b/navit/traffic.c index cb0872da1..108b0b318 100644 --- a/navit/traffic.c +++ b/navit/traffic.c @@ -4788,7 +4788,7 @@ struct traffic_message ** traffic_get_messages_from_xml_string(struct traffic * return ret; } -int traffic_process_messages(struct traffic * this_, struct traffic_message ** messages) { +void traffic_process_messages(struct traffic * this_, struct traffic_message ** messages) { for (struct traffic_message ** cur_msg = messages; cur_msg && *cur_msg; cur_msg++) this_->shared->message_queue = g_list_append(this_->shared->message_queue, *cur_msg); return traffic_process_messages_int(this_, 0); diff --git a/navit/traffic.h b/navit/traffic.h index dd8967a90..0f715424a 100644 --- a/navit/traffic.h +++ b/navit/traffic.h @@ -57,6 +57,7 @@ extern "C" { #endif +/* FIXME these flags are currently not exposed anywhere */ /** Flag to indicate new messages have been received */ #define MESSAGE_UPDATE_MESSAGES 1 << 0 @@ -940,11 +941,8 @@ struct map * traffic_get_map(struct traffic *this_); * * @param this_ The traffic instance * @param messages The new messages - * - * @return A combination of flags, `MESSAGE_UPDATE_MESSAGES` indicating that new messages were processed - * and `MESSAGE_UPDATE_SEGMENTS` that segments were changed */ -int traffic_process_messages(struct traffic * this_, struct traffic_message ** messages); +void traffic_process_messages(struct traffic * this_, struct traffic_message ** messages); /** * @brief Sets the mapset for the traffic plugin. |