diff options
Diffstat (limited to 'src/ensembledatabase.hpp')
-rw-r--r-- | src/ensembledatabase.hpp | 9 |
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 |