mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-06 05:08:35 +02:00
zapit/lib/zapitclient.cpp: add CMD_ZAPTO_EPG command, to be used with epg scan
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user