mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
zapit/lib/zapitclient.cpp: add CMD_ZAPTO_EPG command, to be used with epg scan
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4ac5c40c5f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-10-10 (Thu, 10 Oct 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -149,7 +149,9 @@ class CZapitMessages
|
|||||||
CMD_SET_ASPECTRATIO = 108,
|
CMD_SET_ASPECTRATIO = 108,
|
||||||
CMD_GET_MODE43 = 109,
|
CMD_GET_MODE43 = 109,
|
||||||
CMD_SET_MODE43 = 110,
|
CMD_SET_MODE43 = 110,
|
||||||
CMD_STOP_PIP = 111
|
CMD_STOP_PIP = 111,
|
||||||
|
CMD_ZAPTO_EPG = 112,
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -193,6 +195,11 @@ class CZapitMessages
|
|||||||
bool epg;
|
bool epg;
|
||||||
commandZaptoServiceID():channel_id(0),record(false),pip(false),epg(false){}
|
commandZaptoServiceID():channel_id(0),record(false),pip(false),epg(false){}
|
||||||
};
|
};
|
||||||
|
struct commandZaptoEpg
|
||||||
|
{
|
||||||
|
t_channel_id channel_id;
|
||||||
|
bool standby;
|
||||||
|
};
|
||||||
|
|
||||||
struct commandSetAudioChannel
|
struct commandSetAudioChannel
|
||||||
{
|
{
|
||||||
|
@@ -276,7 +276,7 @@ class CZapitClient:public CBasicClient
|
|||||||
unsigned int zapTo_serviceID(const t_channel_id channel_id);
|
unsigned int zapTo_serviceID(const t_channel_id channel_id);
|
||||||
unsigned int zapTo_record(const t_channel_id channel_id);
|
unsigned int zapTo_record(const t_channel_id channel_id);
|
||||||
unsigned int zapTo_pip(const t_channel_id channel_id);
|
unsigned int zapTo_pip(const t_channel_id channel_id);
|
||||||
unsigned int zapTo_epg(const t_channel_id channel_id);
|
unsigned int zapTo_epg(const t_channel_id channel_id, bool standby = false);
|
||||||
|
|
||||||
/* zaps to subservice, returns the "zap-status" */
|
/* zaps to subservice, returns the "zap-status" */
|
||||||
unsigned int zapTo_subServiceID(const t_channel_id channel_id);
|
unsigned int zapTo_subServiceID(const t_channel_id channel_id);
|
||||||
|
@@ -202,16 +202,14 @@ unsigned int CZapitClient::zapTo_pip(const t_channel_id channel_id)
|
|||||||
return response.zapStatus;
|
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.channel_id = channel_id;
|
||||||
msg.record = false;
|
msg.standby = standby;
|
||||||
msg.pip = false;
|
|
||||||
msg.epg = true;
|
|
||||||
|
|
||||||
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));
|
send(CZapitMessages::CMD_ZAPTO_EPG, (const char *) & msg, sizeof(msg));
|
||||||
|
|
||||||
CZapitMessages::responseZapComplete response;
|
CZapitMessages::responseZapComplete response;
|
||||||
CBasicClient::receive_data((char* )&response, sizeof(response));
|
CBasicClient::receive_data((char* )&response, sizeof(response));
|
||||||
|
Reference in New Issue
Block a user