zapit: change lastChannelRadio/lastChannelTV from number to channel_id

Origin commit data
------------------
Commit: 866b7e7b45
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-03-13 (Tue, 13 Mar 2012)
This commit is contained in:
[CST] Focus
2012-03-13 14:05:53 +04:00
parent dbe7528151
commit b5a64ff20f
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();