1
0
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:
Rolf Ahrenberg 2014-11-25 22:04:34 +02:00
parent 1642f59980
commit 6d68ef3e49
8 changed files with 10 additions and 10 deletions

View File

@ -49,7 +49,7 @@ int cSatipMsearch::GetFd(void)
return Fd(); return Fd();
} }
void cSatipMsearch::Process(int fdP) void cSatipMsearch::Process(void)
{ {
//debug("cSatipMsearch::%s()", __FUNCTION__); //debug("cSatipMsearch::%s()", __FUNCTION__);
if (bufferM) { if (bufferM) {

View File

@ -31,7 +31,7 @@ public:
// for internal poller interface // for internal poller interface
public: public:
virtual int GetFd(void); virtual int GetFd(void);
virtual void Process(int fdP); virtual void Process(void);
}; };
#endif /* __SATIP_MSEARCH_H_ */ #endif /* __SATIP_MSEARCH_H_ */

View File

@ -78,7 +78,7 @@ void cSatipPoller::Action(void)
for (int i = 0; i < nfds; ++i) { for (int i = 0; i < nfds; ++i) {
cSatipPollerIf* poll = reinterpret_cast<cSatipPollerIf *>(events[i].data.ptr); cSatipPollerIf* poll = reinterpret_cast<cSatipPollerIf *>(events[i].data.ptr);
if (poll) if (poll)
poll->Process(events[i].events); poll->Process();
} }
} }
debug("cSatipPoller::%s(): exiting", __FUNCTION__); debug("cSatipPoller::%s(): exiting", __FUNCTION__);

View File

@ -13,7 +13,7 @@ public:
cSatipPollerIf() {} cSatipPollerIf() {}
virtual ~cSatipPollerIf() {} virtual ~cSatipPollerIf() {}
virtual int GetFd(void) = 0; virtual int GetFd(void) = 0;
virtual void Process(int fdP) = 0; virtual void Process(void) = 0;
private: private:
cSatipPollerIf(const cSatipPollerIf&); cSatipPollerIf(const cSatipPollerIf&);

4
rtcp.c
View File

@ -77,9 +77,9 @@ int cSatipRtcp::GetApplicationOffset(int *lengthP)
return -1; 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) { if (bufferM) {
int length = Read(bufferM, bufferLenM); int length = Read(bufferM, bufferLenM);
if (length > 0) { if (length > 0) {

2
rtcp.h
View File

@ -26,7 +26,7 @@ public:
// for internal poller interface // for internal poller interface
public: public:
virtual int GetFd(void); virtual int GetFd(void);
virtual void Process(int fdP); virtual void Process(void);
}; };
#endif /* __SATIP_RTCP_H_ */ #endif /* __SATIP_RTCP_H_ */

4
rtp.c
View File

@ -107,9 +107,9 @@ int cSatipRtp::GetHeaderLenght(unsigned int lengthP)
return headerlen; 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) { if (bufferM) {
int length = Read(bufferM, bufferLenM); int length = Read(bufferM, bufferLenM);
if (length > 0) { if (length > 0) {

2
rtp.h
View File

@ -33,7 +33,7 @@ public:
// for internal poller interface // for internal poller interface
public: public:
virtual int GetFd(void); virtual int GetFd(void);
virtual void Process(int fdP); virtual void Process(void);
}; };
#endif /* __SATIP_RTP_H_ */ #endif /* __SATIP_RTP_H_ */