zapit/lib/zapitclient.cpp: add CMD_ZAPTO_EPG command, to be used with epg scan

Origin commit data
------------------
Commit: 4ac5c40c5f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-10-10 (Thu, 10 Oct 2013)
This commit is contained in:
[CST] Focus
2013-10-10 18:47:29 +04:00
parent e2056607ba
commit f886931594
3 changed files with 13 additions and 8 deletions

View File

@@ -202,16 +202,14 @@ unsigned int CZapitClient::zapTo_pip(const t_channel_id channel_id)
return response.zapStatus;
}
unsigned int CZapitClient::zapTo_epg(const t_channel_id channel_id)
unsigned int CZapitClient::zapTo_epg(const t_channel_id channel_id, bool standby)
{
CZapitMessages::commandZaptoServiceID msg;
CZapitMessages::commandZaptoEpg msg;
msg.channel_id = channel_id;
msg.record = false;
msg.pip = false;
msg.epg = true;
msg.standby = standby;
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));
send(CZapitMessages::CMD_ZAPTO_EPG, (const char *) & msg, sizeof(msg));
CZapitMessages::responseZapComplete response;
CBasicClient::receive_data((char* )&response, sizeof(response));