mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
cosmetics: align epg_id notation to channel_id
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4343c2d5da
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-04-27 (Sat, 27 Apr 2019)
Origin message was:
------------------
- cosmetics: align epg_id notation to channel_id
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -242,7 +242,7 @@ void CSectionsdClient::dumpStatus()
|
||||
}
|
||||
|
||||
#if 0
|
||||
bool CSectionsdClient::getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags)
|
||||
bool CSectionsdClient::getComponentTagsUniqueKey(const t_event_id uniqueKey, CSectionsdClient::ComponentTagList& tags)
|
||||
{
|
||||
if (send(sectionsd::ComponentTagsUniqueKey, (char*)&uniqueKey, sizeof(uniqueKey)))
|
||||
{
|
||||
@@ -283,7 +283,7 @@ bool CSectionsdClient::getComponentTagsUniqueKey(const event_id_t uniqueKey, CSe
|
||||
}
|
||||
}
|
||||
|
||||
bool CSectionsdClient::getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors)
|
||||
bool CSectionsdClient::getLinkageDescriptorsUniqueKey(const t_event_id uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors)
|
||||
{
|
||||
if (send(sectionsd::LinkageDescriptorsUniqueKey, (char*)&uniqueKey, sizeof(uniqueKey)))
|
||||
{
|
||||
@@ -368,16 +368,16 @@ bool CSectionsdClient::getCurrentNextServiceKey(const t_channel_id channel_id, C
|
||||
char* dp = pData;
|
||||
|
||||
// current
|
||||
current_next.current_uniqueKey = *((event_id_t *)dp);
|
||||
dp+= sizeof(event_id_t);
|
||||
current_next.current_uniqueKey = *((t_event_id *)dp);
|
||||
dp+= sizeof(t_event_id);
|
||||
current_next.current_zeit = *(CSectionsdClient::sectionsdTime*) dp;
|
||||
dp+= sizeof(CSectionsdClient::sectionsdTime);
|
||||
current_next.current_name = dp;
|
||||
dp+=strlen(dp)+1;
|
||||
|
||||
// next
|
||||
current_next.next_uniqueKey = *((event_id_t *)dp);
|
||||
dp+= sizeof(event_id_t);
|
||||
current_next.next_uniqueKey = *((t_event_id *)dp);
|
||||
dp+= sizeof(t_event_id);
|
||||
current_next.next_zeit = *(CSectionsdClient::sectionsdTime*) dp;
|
||||
dp+= sizeof(CSectionsdClient::sectionsdTime);
|
||||
current_next.next_name = dp;
|
||||
@@ -419,7 +419,7 @@ CChannelEventList CSectionsdClient::getChannelEvents(const bool tv_mode, t_chann
|
||||
{
|
||||
CChannelEvent aEvent;
|
||||
|
||||
aEvent.eventID = *((event_id_t *) dp);
|
||||
aEvent.eventID = *((t_event_id *) dp);
|
||||
dp+=sizeof(aEvent.eventID);
|
||||
|
||||
aEvent.startTime = *((time_t *) dp);
|
||||
@@ -486,7 +486,7 @@ bool CSectionsdClient::getEventsServiceKeySearchAdd(CChannelEventList& eList,con
|
||||
{
|
||||
CChannelEvent aEvent;
|
||||
|
||||
aEvent.eventID = *((event_id_t *) dp);
|
||||
aEvent.eventID = *((t_event_id *) dp);
|
||||
dp+=sizeof(aEvent.eventID);
|
||||
|
||||
aEvent.startTime = *((time_t *) dp);
|
||||
@@ -532,7 +532,7 @@ CChannelEventList CSectionsdClient::getEventsServiceKey(const t_channel_id chann
|
||||
{
|
||||
CChannelEvent aEvent;
|
||||
|
||||
aEvent.eventID = *((event_id_t *) dp);
|
||||
aEvent.eventID = *((t_event_id *) dp);
|
||||
dp+=sizeof(aEvent.eventID);
|
||||
|
||||
aEvent.startTime = *((time_t *) dp);
|
||||
@@ -654,7 +654,7 @@ bool CSectionsdClient::getActualEPGServiceKey(const t_channel_id channel_id, CEP
|
||||
|
||||
char* dp = pData;
|
||||
|
||||
epgdata->eventID = *((event_id_t *)dp);
|
||||
epgdata->eventID = *((t_event_id *)dp);
|
||||
dp+= sizeof(epgdata->eventID);
|
||||
|
||||
epgdata->title = dp;
|
||||
@@ -692,7 +692,7 @@ bool CSectionsdClient::getActualEPGServiceKey(const t_channel_id channel_id, CEP
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CSectionsdClient::getEPGid(const event_id_t eventid, const time_t starttime, CEPGData * epgdata)
|
||||
bool CSectionsdClient::getEPGid(const t_event_id eventid, const time_t starttime, CEPGData * epgdata)
|
||||
{
|
||||
sectionsd::commandGetEPGid msg;
|
||||
|
||||
@@ -710,7 +710,7 @@ bool CSectionsdClient::getEPGid(const event_id_t eventid, const time_t starttime
|
||||
|
||||
char* dp = pData;
|
||||
|
||||
epgdata->eventID = *((event_id_t *)dp);
|
||||
epgdata->eventID = *((t_event_id *)dp);
|
||||
dp+= sizeof(epgdata->eventID);
|
||||
|
||||
epgdata->title = dp;
|
||||
@@ -747,7 +747,7 @@ bool CSectionsdClient::getEPGid(const event_id_t eventid, const time_t starttime
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CSectionsdClient::getEPGidShort(const event_id_t eventid, CShortEPGData * epgdata)
|
||||
bool CSectionsdClient::getEPGidShort(const t_event_id eventid, CShortEPGData * epgdata)
|
||||
{
|
||||
if (send(sectionsd::epgEPGidShort, (char*)&eventid, sizeof(eventid)))
|
||||
{
|
||||
|
@@ -44,7 +44,7 @@ class CChannelEvent
|
||||
{
|
||||
public:
|
||||
t_channel_id get_channel_id(void) const { return GET_CHANNEL_ID_FROM_EVENT_ID(eventID); }
|
||||
event_id_t eventID;
|
||||
t_event_id eventID;
|
||||
std::string description;
|
||||
std::string text;
|
||||
time_t startTime;
|
||||
@@ -139,11 +139,11 @@ class CSectionsdClient : private CBasicClient
|
||||
|
||||
struct responseGetCurrentNextInfoChannelID
|
||||
{
|
||||
event_id_t current_uniqueKey;
|
||||
t_event_id current_uniqueKey;
|
||||
CSectionsdClient::sectionsdTime current_zeit;
|
||||
std::string current_name;
|
||||
char current_fsk;
|
||||
event_id_t next_uniqueKey;
|
||||
t_event_id next_uniqueKey;
|
||||
CSectionsdClient::sectionsdTime next_zeit;
|
||||
std::string next_name;
|
||||
unsigned flags;
|
||||
@@ -176,16 +176,16 @@ class CSectionsdClient : private CBasicClient
|
||||
} epg_config;
|
||||
|
||||
#if 0
|
||||
bool getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags);
|
||||
bool getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors);
|
||||
bool getComponentTagsUniqueKey(const t_event_id uniqueKey, CSectionsdClient::ComponentTagList& tags);
|
||||
bool getLinkageDescriptorsUniqueKey(const t_event_id uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors);
|
||||
bool getNVODTimesServiceKey(const t_channel_id channel_id, CSectionsdClient::NVODTimesList& nvod_list);
|
||||
bool getCurrentNextServiceKey(const t_channel_id channel_id, CSectionsdClient::responseGetCurrentNextInfoChannelID& current_next);
|
||||
CChannelEventList getChannelEvents(const bool tv_mode = true, t_channel_id* = NULL, int size = 0);
|
||||
CChannelEventList getEventsServiceKey(const t_channel_id channel_id);
|
||||
bool getEventsServiceKeySearchAdd(CChannelEventList& evtlist,const t_channel_id channel_id,char m_search_typ,std::string& m_search_text);
|
||||
bool getEPGid(const event_id_t eventid, const time_t starttime, CEPGData * epgdata);
|
||||
bool getEPGid(const t_event_id eventid, const time_t starttime, CEPGData * epgdata);
|
||||
bool getActualEPGServiceKey(const t_channel_id channel_id, CEPGData * epgdata);
|
||||
bool getEPGidShort(const event_id_t eventid, CShortEPGData * epgdata);
|
||||
bool getEPGidShort(const t_event_id eventid, CShortEPGData * epgdata);
|
||||
void setPrivatePid(const unsigned short pid);
|
||||
#endif
|
||||
|
||||
|
@@ -26,8 +26,8 @@
|
||||
|
||||
#include <zapit/client/zapittypes.h> /* t_channel_id, t_service_id, t_original_network_id, t_transport_stream_id; */
|
||||
|
||||
typedef uint64_t event_id_t;
|
||||
#define CREATE_EVENT_ID(channel_id,event_nr) ((((event_id_t)channel_id) << 16) | event_nr)
|
||||
typedef uint64_t t_event_id;
|
||||
#define CREATE_EVENT_ID(channel_id,event_nr) ((((t_event_id)channel_id) << 16) | event_nr)
|
||||
#define GET_CHANNEL_ID_FROM_EVENT_ID(event_id) ((t_channel_id)((event_id) >> 16))
|
||||
|
||||
#endif /* __sectionsdtypes_h__ */
|
||||
|
Reference in New Issue
Block a user