mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-10 23:28:28 +02:00
zapit/lib/zapitclient.cpp: add zapTo_epg, EVT_BACK_ZAP_COMPLETE event
Origin commit data
------------------
Commit: 322db8b591
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-08-12 (Mon, 12 Aug 2013)
This commit is contained in:
@@ -170,6 +170,7 @@ unsigned int CZapitClient::zapTo_record(const t_channel_id channel_id)
|
||||
msg.channel_id = channel_id;
|
||||
msg.record = true;
|
||||
msg.pip = false;
|
||||
msg.epg = false;
|
||||
|
||||
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));
|
||||
|
||||
@@ -188,6 +189,26 @@ unsigned int CZapitClient::zapTo_pip(const t_channel_id channel_id)
|
||||
msg.channel_id = channel_id;
|
||||
msg.record = false;
|
||||
msg.pip = true;
|
||||
msg.epg = false;
|
||||
|
||||
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));
|
||||
|
||||
CZapitMessages::responseZapComplete response;
|
||||
CBasicClient::receive_data((char* )&response, sizeof(response));
|
||||
|
||||
close_connection();
|
||||
|
||||
return response.zapStatus;
|
||||
}
|
||||
|
||||
unsigned int CZapitClient::zapTo_epg(const t_channel_id channel_id)
|
||||
{
|
||||
CZapitMessages::commandZaptoServiceID msg;
|
||||
|
||||
msg.channel_id = channel_id;
|
||||
msg.record = false;
|
||||
msg.pip = false;
|
||||
msg.epg = true;
|
||||
|
||||
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));
|
||||
|
||||
|
Reference in New Issue
Block a user