fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 9 Mar 2006 12:11:23 +0000 (12:11 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 9 Mar 2006 12:11:23 +0000 (12:11 +0000)
lib/dvb/frontend.cpp
lib/dvb/idvb.h

index 3e2efbe..7b71ca1 100644 (file)
 #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;
index a6a19ff..16e0747 100644 (file)
@@ -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;