From 86b8f5aa0210c001728962c5df30bc6e55ce220f Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 9 Mar 2006 12:11:23 +0000 Subject: [PATCH] fix --- lib/dvb/frontend.cpp | 4 +++- lib/dvb/idvb.h | 9 ++++++--- 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 #include -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; -- 2.30.2