summaryrefslogtreecommitdiffstats
path: root/src/MuxElements.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-30 12:03:50 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-30 12:03:50 +0200
commit2e3d29936f70c3c8183a4e2dcb0f967b73de2ec0 (patch)
tree15b35c93262c28084481aac52a997ec9301137c1 /src/MuxElements.h
parent9297ff6af5d41e70d7febc53d7af09055ce3877f (diff)
downloaddabmux-2e3d29936f70c3c8183a4e2dcb0f967b73de2ec0.tar.gz
dabmux-2e3d29936f70c3c8183a4e2dcb0f967b73de2ec0.tar.bz2
dabmux-2e3d29936f70c3c8183a4e2dcb0f967b73de2ec0.zip
Parse service linking section
Diffstat (limited to 'src/MuxElements.h')
-rw-r--r--src/MuxElements.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/MuxElements.h b/src/MuxElements.h
index ab97fd7..93c291f 100644
--- a/src/MuxElements.h
+++ b/src/MuxElements.h
@@ -423,7 +423,7 @@ class DabService : public RemoteControllable
DabService(const DabService& other);
};
-enum class ServiceLinkType {dab, fm, drm, amss};
+enum class ServiceLinkType {DAB, FM, DRM, AMSS};
/* Represent one link inside a linkage set */
struct ServiceLink {
@@ -438,7 +438,10 @@ struct ServiceLink {
*/
class LinkageSet : public RemoteControllable {
public:
- LinkageSet(string name, uint16_t lsn, bool hard, bool international);
+ LinkageSet(std::string name, uint16_t lsn, bool hard, bool international);
+ void set_active(bool active);
+
+ std::list<ServiceLink> id_list;
private:
/* Linkage Set Number is a 12-bit number that identifies the linkage
@@ -452,7 +455,6 @@ class LinkageSet : public RemoteControllable {
bool m_international;
DabService *m_keyservice;
- std::list<ServiceLink> id_list;
/* Remote control */
virtual void set_parameter(const std::string& parameter,