summaryrefslogtreecommitdiff
path: root/navit/track.h
diff options
context:
space:
mode:
authorOLFDB <olf@eisenzelt.de>2021-04-03 08:11:52 +0200
committerGitHub <noreply@github.com>2021-04-03 08:11:52 +0200
commit1effb2462fc787894308e0aafcbd7cc10e77390c (patch)
tree2d4f3cc02bc7f78613a1dda491fc46d1e20ae31b /navit/track.h
parent1e32e2ed7d76851dcfcef95280d52bb8693c6c08 (diff)
downloadnavit-1effb2462fc787894308e0aafcbd7cc10e77390c.tar.gz
added:core:make it switch to nightlayout when we are in a tunnel (#1089)
* Address ToDo : make it switch to nightlayout when we are in a tunne Nightlayout is enabled when available and streetflags & AF_UNDERGROUND is true * Addresses ToDo: make it switch to nightlayout when we are in a tunnel * Delete navit.c * Applied suggested changes from review * Applied changes from review * Fix: Fix formatting of file to pass sanity check * Using tracking->tunnel * Update update_download_center.sh * Update config.yml * attributes tunnel_nightlayout, nightlayout_auto, sunrise_degrees added * Use tracking_get_current_tunnel to access tracking object * Revert "Update update_download_center.sh" This reverts commit 0df8099a4533553f837a6f679899cc1a3aefc057. * Revert "Update config.yml" This reverts commit c1cae2e5f3f7f0fe48af0ddf1414ac6e86f36bba. * removed todo for nightlayout in tunnel * removed debug output * Update navit.c Do not return if there is a day layout Co-authored-by: Stefan Wildemann <stefan.wildemann@corpuls.com> Co-authored-by: Stefan Wildemann <metalstrolch@users.noreply.github.com>
Diffstat (limited to 'navit/track.h')
-rw-r--r--navit/track.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/track.h b/navit/track.h
index 928ef4b00..5713ea4a6 100644
--- a/navit/track.h
+++ b/navit/track.h
@@ -20,9 +20,12 @@
#ifndef NAVIT_TRACK_H
#define NAVIT_TRACK_H
#include <time.h>
+#include "xmlconfig.h"
+#include "coord.h"
#ifdef __cplusplus
extern "C" {
#endif
+
/* prototypes */
enum attr_type;
enum projection;
@@ -45,6 +48,7 @@ struct street_data *tracking_get_street_data(struct tracking *tr);
int tracking_get_attr(struct tracking *_this, enum attr_type type, struct attr *attr, struct attr_iter *attr_iter);
struct item *tracking_get_current_item(struct tracking *_this);
int *tracking_get_current_flags(struct tracking *_this);
+int tracking_get_current_tunnel(struct tracking *_this);
void tracking_flush(struct tracking *tr);
void tracking_update(struct tracking *tr, struct vehicle *v, struct vehicleprofile *vehicleprofile, enum projection pro);
int tracking_set_attr(struct tracking *tr, struct attr *attr);