mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-10 15:18:28 +02:00
Add SAME_TRANSPONDER define; Add new zapit client function
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1565 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 1c6d1a8a08
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-07-21 (Thu, 21 Jul 2011)
This commit is contained in:
@@ -146,6 +146,24 @@ unsigned int CZapitClient::zapTo_serviceID(const t_channel_id channel_id)
|
||||
CZapitMessages::commandZaptoServiceID msg;
|
||||
|
||||
msg.channel_id = channel_id;
|
||||
msg.record = 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_record(const t_channel_id channel_id)
|
||||
{
|
||||
CZapitMessages::commandZaptoServiceID msg;
|
||||
|
||||
msg.channel_id = channel_id;
|
||||
msg.record = true;
|
||||
|
||||
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));
|
||||
|
||||
|
Reference in New Issue
Block a user