aboutsummaryrefslogtreecommitdiffstats
path: root/src/ensembledatabase.hpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-30 10:43:49 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-30 10:43:49 +0100
commit466833a35a402347b7e2180ab265146eb0a3a59d (patch)
tree08e9c71325e8b8774d73cdc49b55206c15254f44 /src/ensembledatabase.hpp
parentc515439594bf939e3f712856257a5a086b57616a (diff)
downloadetisnoop-466833a35a402347b7e2180ab265146eb0a3a59d.tar.gz
etisnoop-466833a35a402347b7e2180ab265146eb0a3a59d.tar.bz2
etisnoop-466833a35a402347b7e2180ab265146eb0a3a59d.zip
Fix FIB2 component labels
Diffstat (limited to 'src/ensembledatabase.hpp')
-rw-r--r--src/ensembledatabase.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ensembledatabase.hpp b/src/ensembledatabase.hpp
index dee434d..fff989f 100644
--- a/src/ensembledatabase.hpp
+++ b/src/ensembledatabase.hpp
@@ -94,11 +94,15 @@ struct subchannel_t {
};
struct component_t {
- uint32_t service_id;
+ uint32_t service_id = 0;
uint8_t subchId;
+ uint8_t scids = 255; // 255 is invalid, as scids is only 4 bits wide
+
bool primary;
+ label_t label;
+
/* TODO
uint8_t type;
@@ -114,7 +118,8 @@ struct service_t {
std::list<component_t> components;
- component_t& get_component(uint32_t subchannel_id);
+ component_t& get_component_by_subchannel(uint32_t subchannel_id);
+ component_t& get_component_by_scids(uint8_t scids);
component_t& get_or_create_component(uint32_t subchannel_id);
// TODO PTy language announcement