mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
add pseudo AdZap timertype
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8c7968edc4
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-02-07 (Fri, 07 Feb 2014)
Origin message was:
------------------
-add pseudo AdZap timertype
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -61,6 +61,7 @@ class CTimerdClient:private CBasicClient
|
||||
|
||||
void registerEvent(unsigned int eventID, unsigned int clientID, const char * const udsName);
|
||||
void unRegisterEvent(unsigned int eventID, unsigned int clientID);
|
||||
static int adzap_eventID;
|
||||
|
||||
bool isTimerdAvailable(); // check if timerd is running
|
||||
|
||||
@@ -151,6 +152,18 @@ class CTimerdClient:private CBasicClient
|
||||
eventInfo.recordingSafety = false;
|
||||
return addTimerEvent(CTimerd::TIMER_ZAPTO, &eventInfo, announcetime, alarmtime, stoptime);
|
||||
};
|
||||
// adds new adzap timer event //pseudo TIMER_ADZAP
|
||||
int addAdZaptoTimerEvent(const t_channel_id channel_id, time_t alarmtime)
|
||||
{
|
||||
CTimerd::EventInfo eventInfo;
|
||||
eventInfo.channel_id = channel_id;
|
||||
eventInfo.epgID = 1;
|
||||
eventInfo.epg_starttime = 0;
|
||||
eventInfo.apids = 0;
|
||||
eventInfo.recordingSafety = false;
|
||||
return addTimerEvent(CTimerd::TIMER_ADZAP, &eventInfo, 0, alarmtime, 0);
|
||||
};
|
||||
|
||||
|
||||
#if 0
|
||||
int addNextProgramTimerEvent(CTimerd::EventInfo eventInfo,time_t alarmtime, time_t announcetime = 0, time_t stoptime = 0)
|
||||
|
Reference in New Issue
Block a user