zapit/src/zapit.cpp: comment unused messages

This commit is contained in:
[CST] Focus
2012-04-18 19:06:00 +04:00
parent c3504f0143
commit d8aab5c6d3

View File

@@ -806,23 +806,23 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
break; break;
} }
case CZapitMessages::CMD_GET_LAST_CHANNEL: {
#if 0 #if 0
case CZapitMessages::CMD_GET_LAST_CHANNEL: {
CZapitClient::responseGetLastChannel lastchannel; CZapitClient::responseGetLastChannel lastchannel;
lastchannel.channel_id = (currentMode & RADIO_MODE) ? lastChannelRadio : lastChannelTV; lastchannel.channel_id = (currentMode & RADIO_MODE) ? lastChannelRadio : lastChannelTV;
lastchannel.mode = getMode(); lastchannel.mode = getMode();
CBasicServer::send_data(connfd, &lastchannel, sizeof(lastchannel)); // bouquet & channel number are already starting at 0! CBasicServer::send_data(connfd, &lastchannel, sizeof(lastchannel)); // bouquet & channel number are already starting at 0!
#endif
ERROR("CZapitMessages::CMD_GET_LAST_CHANNEL: depreciated command\n"); ERROR("CZapitMessages::CMD_GET_LAST_CHANNEL: depreciated command\n");
break; break;
} }
#endif
#if 0
case CZapitMessages::CMD_GET_CURRENT_SATELLITE_POSITION: { case CZapitMessages::CMD_GET_CURRENT_SATELLITE_POSITION: {
int32_t currentSatellitePosition = current_channel ? current_channel->getSatellitePosition() : live_fe->getCurrentSatellitePosition(); int32_t currentSatellitePosition = current_channel ? current_channel->getSatellitePosition() : live_fe->getCurrentSatellitePosition();
CBasicServer::send_data(connfd, &currentSatellitePosition, sizeof(currentSatellitePosition)); CBasicServer::send_data(connfd, &currentSatellitePosition, sizeof(currentSatellitePosition));
break; break;
} }
#endif
case CZapitMessages::CMD_SET_AUDIOCHAN: { case CZapitMessages::CMD_SET_AUDIOCHAN: {
CZapitMessages::commandSetAudioChannel msgSetAudioChannel; CZapitMessages::commandSetAudioChannel msgSetAudioChannel;
CBasicServer::receive_data(connfd, &msgSetAudioChannel, sizeof(msgSetAudioChannel)); CBasicServer::receive_data(connfd, &msgSetAudioChannel, sizeof(msgSetAudioChannel));
@@ -952,7 +952,7 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
CBasicServer::send_data(connfd, &_response, sizeof(_response)); CBasicServer::send_data(connfd, &_response, sizeof(_response));
break; break;
} }
#if 0
case CZapitMessages::CMD_IS_TV_CHANNEL: { case CZapitMessages::CMD_IS_TV_CHANNEL: {
t_channel_id requested_channel_id; t_channel_id requested_channel_id;
CZapitMessages::responseGeneralTrueFalse _response; CZapitMessages::responseGeneralTrueFalse _response;
@@ -968,7 +968,7 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
CBasicServer::send_data(connfd, &_response, sizeof(_response)); CBasicServer::send_data(connfd, &_response, sizeof(_response));
break; break;
} }
#endif
case CZapitMessages::CMD_BQ_RESTORE: { case CZapitMessages::CMD_BQ_RESTORE: {
//2004.08.02 g_bouquetManager->restoreBouquets(); //2004.08.02 g_bouquetManager->restoreBouquets();
if(list_changed) { if(list_changed) {
@@ -1409,7 +1409,7 @@ printf("[zapit] TP_id %d freq %d rate %d fec %d pol %d\n", TP.TP_id, TP.feparams
#endif #endif
break; break;
} }
#if 0
case CZapitMessages::CMD_SET_AUDIO_MODE: { case CZapitMessages::CMD_SET_AUDIO_MODE: {
CZapitMessages::commandInt msg; CZapitMessages::commandInt msg;
CBasicServer::receive_data(connfd, &msg, sizeof(msg)); CBasicServer::receive_data(connfd, &msg, sizeof(msg));
@@ -1417,7 +1417,7 @@ printf("[zapit] TP_id %d freq %d rate %d fec %d pol %d\n", TP.TP_id, TP.feparams
audio_mode = msg.val; audio_mode = msg.val;
break; break;
} }
#endif
case CZapitMessages::CMD_GET_AUDIO_MODE: { case CZapitMessages::CMD_GET_AUDIO_MODE: {
CZapitMessages::commandInt msg; CZapitMessages::commandInt msg;
msg.val = (int) audio_mode; msg.val = (int) audio_mode;