From 1817b5ddeb1852e97b1f2c32c9293d87b51c8959 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 10 Apr 2012 15:22:57 +0400 Subject: [PATCH] zapit/lib/zapitclient.cpp: comment get/setConfig --- src/zapit/include/zapit/client/zapitclient.h | 2 ++ src/zapit/lib/zapitclient.cpp | 2 ++ src/zapit/src/zapit.cpp | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/zapit/include/zapit/client/zapitclient.h b/src/zapit/include/zapit/client/zapitclient.h index c0f65ab35..1f9fa2441 100644 --- a/src/zapit/include/zapit/client/zapitclient.h +++ b/src/zapit/include/zapit/client/zapitclient.h @@ -378,8 +378,10 @@ class CZapitClient:public CBasicClient /* */ /****************************************/ /* start TS-Scan */ +#if 0 bool setConfig(Zapit_config Cfg); void getConfig(Zapit_config * Cfg); +#endif bool Rezap(); bool startScan(int scan_mode); bool stopScan(); diff --git a/src/zapit/lib/zapitclient.cpp b/src/zapit/lib/zapitclient.cpp index 7d20d6c1c..d66ef4948 100644 --- a/src/zapit/lib/zapitclient.cpp +++ b/src/zapit/lib/zapitclient.cpp @@ -585,6 +585,7 @@ bool CZapitClient::stopScan() close_connection(); return reply; } +#if 0 bool CZapitClient::setConfig(Zapit_config Cfg) { //bool reply = send(CZapitMessages::CMD_LOADCONFIG); @@ -598,6 +599,7 @@ void CZapitClient::getConfig (Zapit_config * Cfg) CBasicClient::receive_data((char *) Cfg, sizeof(Zapit_config)); close_connection(); } +#endif bool CZapitClient::Rezap() { bool reply = send(CZapitMessages::CMD_REZAP); diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index c1c920501..181eff92b 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -1018,7 +1018,7 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd) CServiceScan::getInstance()->Abort(); CServiceScan::getInstance()->Stop(); break; - +#if 0 case CZapitMessages::CMD_SETCONFIG: Zapit_config Cfg; CBasicServer::receive_data(connfd, &Cfg, sizeof(Cfg)); @@ -1027,6 +1027,7 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd) case CZapitMessages::CMD_GETCONFIG: SendConfig(connfd); break; +#endif case CZapitMessages::CMD_REZAP: if (currentMode & RECORD_MODE) break;