aboutsummaryrefslogtreecommitdiffstats
path: root/src/MuxElements.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-07 14:50:09 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-07 14:50:09 +0200
commit2773aecdea641ca8a0b362085eba3dc5273e0fa6 (patch)
treeb211a19d18cabecf26da3024167e86c34417b77a /src/MuxElements.h
parentb53125dffd58e96ec586c40320827100c039398f (diff)
downloaddabmux-2773aecdea641ca8a0b362085eba3dc5273e0fa6.tar.gz
dabmux-2773aecdea641ca8a0b362085eba3dc5273e0fa6.tar.bz2
dabmux-2773aecdea641ca8a0b362085eba3dc5273e0fa6.zip
Create enum class subchannel_type_t
Diffstat (limited to 'src/MuxElements.h')
-rw-r--r--src/MuxElements.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/MuxElements.h b/src/MuxElements.h
index ebcf708..d714c76 100644
--- a/src/MuxElements.h
+++ b/src/MuxElements.h
@@ -39,6 +39,14 @@
#include "RemoteControl.h"
#include "Eti.h"
+enum class subchannel_type_t {
+ Audio = 0,
+ DataDmb = 1,
+ Fidc = 2,
+ Packet = 3
+};
+
+
struct dabOutput {
dabOutput(const char* proto, const char* name) :
outputProto(proto), outputName(name), output(NULL) { }
@@ -172,13 +180,6 @@ struct dabProtection {
};
};
-enum dab_subchannel_type_t {
- Audio = 0,
- DataDmb = 1,
- Fidc = 2,
- Packet = 3
-};
-
class dabSubchannel
{
public:
@@ -192,7 +193,7 @@ public:
std::string inputUri;
DabInputBase* input;
unsigned char id;
- dab_subchannel_type_t type;
+ subchannel_type_t type;
uint16_t startAddress;
uint16_t bitrate;
dabProtection protection;
@@ -297,7 +298,7 @@ class DabService : public RemoteControllable
unsigned char language;
bool program;
- unsigned char getType(boost::shared_ptr<dabEnsemble> ensemble);
+ subchannel_type_t getType(boost::shared_ptr<dabEnsemble> ensemble);
unsigned char nbComponent(std::vector<DabComponent*>& components);
DabLabel label;