mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Simplified poller interface.
This commit is contained in:
parent
1642f59980
commit
6d68ef3e49
@ -49,7 +49,7 @@ int cSatipMsearch::GetFd(void)
|
||||
return Fd();
|
||||
}
|
||||
|
||||
void cSatipMsearch::Process(int fdP)
|
||||
void cSatipMsearch::Process(void)
|
||||
{
|
||||
//debug("cSatipMsearch::%s()", __FUNCTION__);
|
||||
if (bufferM) {
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
// for internal poller interface
|
||||
public:
|
||||
virtual int GetFd(void);
|
||||
virtual void Process(int fdP);
|
||||
virtual void Process(void);
|
||||
};
|
||||
|
||||
#endif /* __SATIP_MSEARCH_H_ */
|
||||
|
2
poller.c
2
poller.c
@ -78,7 +78,7 @@ void cSatipPoller::Action(void)
|
||||
for (int i = 0; i < nfds; ++i) {
|
||||
cSatipPollerIf* poll = reinterpret_cast<cSatipPollerIf *>(events[i].data.ptr);
|
||||
if (poll)
|
||||
poll->Process(events[i].events);
|
||||
poll->Process();
|
||||
}
|
||||
}
|
||||
debug("cSatipPoller::%s(): exiting", __FUNCTION__);
|
||||
|
@ -13,7 +13,7 @@ public:
|
||||
cSatipPollerIf() {}
|
||||
virtual ~cSatipPollerIf() {}
|
||||
virtual int GetFd(void) = 0;
|
||||
virtual void Process(int fdP) = 0;
|
||||
virtual void Process(void) = 0;
|
||||
|
||||
private:
|
||||
cSatipPollerIf(const cSatipPollerIf&);
|
||||
|
4
rtcp.c
4
rtcp.c
@ -77,9 +77,9 @@ int cSatipRtcp::GetApplicationOffset(int *lengthP)
|
||||
return -1;
|
||||
}
|
||||
|
||||
void cSatipRtcp::Process(int fdP)
|
||||
void cSatipRtcp::Process(void)
|
||||
{
|
||||
//debug("cSatipRtcp::%s(%d) [device %d]", __FUNCTION__, fdP, tunerM.GetId());
|
||||
//debug("cSatipRtcp::%s() [device %d]", __FUNCTION__, tunerM.GetId());
|
||||
if (bufferM) {
|
||||
int length = Read(bufferM, bufferLenM);
|
||||
if (length > 0) {
|
||||
|
2
rtcp.h
2
rtcp.h
@ -26,7 +26,7 @@ public:
|
||||
// for internal poller interface
|
||||
public:
|
||||
virtual int GetFd(void);
|
||||
virtual void Process(int fdP);
|
||||
virtual void Process(void);
|
||||
};
|
||||
|
||||
#endif /* __SATIP_RTCP_H_ */
|
||||
|
4
rtp.c
4
rtp.c
@ -107,9 +107,9 @@ int cSatipRtp::GetHeaderLenght(unsigned int lengthP)
|
||||
return headerlen;
|
||||
}
|
||||
|
||||
void cSatipRtp::Process(int fdP)
|
||||
void cSatipRtp::Process(void)
|
||||
{
|
||||
//debug("cSatipRtp::%s(%d) [device %d]", __FUNCTION__, fdP, tunerM.GetId());
|
||||
//debug("cSatipRtp::%s() [device %d]", __FUNCTION__, tunerM.GetId());
|
||||
if (bufferM) {
|
||||
int length = Read(bufferM, bufferLenM);
|
||||
if (length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user