From dcf31333500609a02e98bcada3d6de83c3754db8 Mon Sep 17 00:00:00 2001 From: "[CST]Nicu" Date: Thu, 29 Mar 2012 21:52:27 +0300 Subject: [PATCH] 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 --- src/zapit/include/zapit/zapit.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zapit/include/zapit/zapit.h b/src/zapit/include/zapit/zapit.h index 4ee25b8f1..8a22305ee 100644 --- a/src/zapit/include/zapit/zapit.h +++ b/src/zapit/include/zapit/zapit.h @@ -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);