summaryrefslogtreecommitdiff
path: root/navit/navigation.c
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2015-10-12 13:51:46 +0200
committermvglasow <michael -at- vonglasow.com>2015-10-14 11:12:28 +0200
commit334f446237ed2da2ab447b2f8d16c2daa00a5bef (patch)
tree3e5a178d499dcf489f960d8bd868b154becbbde1 /navit/navigation.c
parente629ccf7771050fe0240f2ff45fc8a7879d9dbd6 (diff)
downloadnavit-334f446237ed2da2ab447b2f8d16c2daa00a5bef.tar.gz
Refactor:core:Fix and improve documentation in navigation.c
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/navigation.c')
-rw-r--r--navit/navigation.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/navit/navigation.c b/navit/navigation.c
index 0d163e419..9fb734e78 100644
--- a/navit/navigation.c
+++ b/navit/navigation.c
@@ -3780,7 +3780,7 @@ navigation_call_callbacks(struct navigation *this_, int force_speech)
*
* It will reset the navigation object's idle event/callback, deallocate some temporary objects and
* reset the {@code busy} flag. Arguments correspond to those of
- * {@link navigation_update_idle(struct navigation *, struct map_rect *, struct item **, int *)}.
+ * {@link navigation_update_idle(struct navigation *, struct map_rect *)}.
*
* @param this_ Points to the navigation object
* @param mr Points to a map rect on the route map. After the function returns, the map rect os no
@@ -3895,6 +3895,17 @@ navigation_update_idle(struct navigation *this_, struct map_rect *mr) {
dbg(lvl_info, "processed %d map items, time elapsed: %.f s\n", (100 - count), difftime(now, this_->starttime));
}
+/**
+ * @brief Event handler for changes to the route.
+ *
+ * This function is added to the callback list of the current route. It is called whenever the
+ * status of the route changes and will either discard the current list of maneuvers or build a new
+ * list.
+ *
+ * @param this_ The navigation object
+ * @param route The route
+ * @param attr The route status attribute
+ */
static void
navigation_update(struct navigation *this_, struct route *route, struct attr *attr)
{