aboutsummaryrefslogtreecommitdiff
path: root/libplanfahr/providers/hafas-bin6-format.h
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-05-06 22:05:05 +0200
committerGuido Günther <agx@sigxcpu.org>2015-05-07 10:41:56 +0200
commit51ceb537e0bef66ecac1de1a7792c730486a74b7 (patch)
tree8d3c92d293096e4fa3e990705b3771dd5e1ca1a8 /libplanfahr/providers/hafas-bin6-format.h
parentff4b3279432b8f0facda456c15a6b2ba597c6909 (diff)
hafas: Detect canceled trips via a flag in HafasBin6TripPartDetail
We currently bubble this up to the whole trip.
Diffstat (limited to 'libplanfahr/providers/hafas-bin6-format.h')
-rw-r--r--libplanfahr/providers/hafas-bin6-format.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libplanfahr/providers/hafas-bin6-format.h b/libplanfahr/providers/hafas-bin6-format.h
index 583d21b..7b4fd68 100644
--- a/libplanfahr/providers/hafas-bin6-format.h
+++ b/libplanfahr/providers/hafas-bin6-format.h
@@ -225,11 +225,14 @@ typedef struct _HafasBin6TripPartDetail {
guint16 arr_pred; /* predicted arrival time */ /* 0x02 */
guint16 dep_pos_pred_off; /* offset into string table */ /* 0x04 */
guint16 arr_pos_pred_off; /* offset into string table */ /* 0x06 */
- guint32 unknown0; /* 0x08 */
+ guint16 flags; /* flags */ /* 0x08 */
+ guint16 unknown0; /* 0x0a */
guint16 stop_index; /* index of first stop */ /* 0x0c */
guint16 stops_cnt; /* number of stops */ /* 0x0e */
} HafasBin6TripPartDetail;
+#define HAFAS_BIN6_PART_DETAIL_FLAGS_CANCELED 0x10 /* trip was cancelled */
+
/**
* HafasBin6Stop:
*