zapit: change lastChannelRadio/lastChannelTV from number to channel_id

This commit is contained in:
[CST] Focus
2012-03-13 14:05:53 +04:00
parent 05f60857d1
commit 866b7e7b45
4 changed files with 21 additions and 18 deletions

View File

@@ -106,13 +106,13 @@ CZapitClient::CCurrentServiceInfo CZapitClient::getCurrentServiceInfo()
return response;
}
void CZapitClient::getLastChannel(unsigned int &channumber, char &mode)
void CZapitClient::getLastChannel(t_channel_id &channel_id, int &mode)
{
send(CZapitMessages::CMD_GET_LAST_CHANNEL);
CZapitClient::responseGetLastChannel response;
CBasicClient::receive_data((char* )&response, sizeof(response));
channumber = response.channelNumber + 1;
channel_id = response.channel_id;
mode = response.mode;
close_connection();