changes for eywa zapit wrapper:

-CZapit constructor and instance are done protected to allow inheritance
-SendEvent is done virtual to be overriden into eywa wrapper class
This commit is contained in:
[CST]Nicu
2012-03-29 21:52:27 +03:00
committed by [CST] Focus
parent 62d0817940
commit dcf3133350

View File

@@ -118,10 +118,11 @@ class CZapit : public OpenThreads::Thread
unsigned int ZapTo(const unsigned int pchannel);
void PrepareScan();
CZapitSdtMonitor SdtMonitor;
CZapitSdtMonitor SdtMonitor;
static CZapit * zapit;
void run();
protected:
static CZapit * zapit;
CZapit();
public:
~CZapit();
@@ -148,7 +149,7 @@ class CZapit : public OpenThreads::Thread
void SetConfig(Zapit_config * Cfg);
void GetConfig(Zapit_config &Cfg);
void SendEvent(const unsigned int eventID, const void* eventbody = NULL, const unsigned int eventbodysize = 0);
virtual void SendEvent(const unsigned int eventID, const void* eventbody = NULL, const unsigned int eventbodysize = 0);
audio_map_set_t * GetSavedPids(const t_channel_id channel_id);