aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/dvb/frontend.cpp4
-rw-r--r--lib/dvb/idvb.h9
2 files changed, 9 insertions, 4 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp
index 3e2efbe7..7b71ca13 100644
--- a/lib/dvb/frontend.cpp
+++ b/lib/dvb/frontend.cpp
@@ -53,8 +53,10 @@
#include <dvbsi++/cable_delivery_system_descriptor.h>
#include <dvbsi++/terrestrial_delivery_system_descriptor.h>
-void eDVBDiseqcCommand::setData(const char *str)
+void eDVBDiseqcCommand::setCommandString(const char *str)
{
+ if (!str)
+ return;
len = strlen(str);
if (len > MAX_DISEQC_LENGTH)
len = MAX_DISEQC_LENGTH;
diff --git a/lib/dvb/idvb.h b/lib/dvb/idvb.h
index a6a19fff..16e0747c 100644
--- a/lib/dvb/idvb.h
+++ b/lib/dvb/idvb.h
@@ -323,16 +323,19 @@ public:
class eDVBDiseqcCommand
{
+#ifndef SWIG
public:
+#endif
int len;
-#ifndef SWIG
__u8 data[MAX_DISEQC_LENGTH];
#if HAVE_DVB_API_VERSION < 3
int tone;
int voltage;
#endif
-#endif //SWIG
- void setData(const char *str);
+#ifdef SWIG
+public:
+#endif
+ void setCommandString(const char *str);
};
class iDVBSatelliteEquipmentControl;