zapit/src/frontend.cpp: comment getInstance, currentFe

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6acb222311
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-04-25 (Wed, 25 Apr 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-04-25 15:32:04 +04:00
parent 6f01fe9656
commit c7af7992e9
2 changed files with 6 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ class CFrontend
/* current adapter where this frontend is on */
int adapter;
/* current frontend instance */
static CFrontend *currentFe;
//static CFrontend *currentFe;
bool locked;
/* tuning finished flag */
bool tuned;
@@ -159,7 +159,7 @@ class CFrontend
/* Private constructor */
CFrontend(int Number = 0, int Adapter = 0);
static CFrontend *getInstance(int Number = 0, int Adapter = 0);
//static CFrontend *getInstance(int Number = 0, int Adapter = 0);
friend class CFEManager;
public:
~CFrontend(void);

View File

@@ -137,6 +137,7 @@ typedef enum dvb_fec {
#define TIME_STEP 200
#define TIMEOUT_MAX_MS (feTimeout*100)
/*********************************************************************************************************/
#if 0
// Global fe instance
CFrontend *CFrontend::currentFe = NULL;
@@ -148,7 +149,7 @@ CFrontend *CFrontend::getInstance(int Number, int Adapter)
}
return currentFe;
}
#endif
CFrontend::CFrontend(int Number, int Adapter)
{
printf("[fe%d] New frontend on adapter %d\n", Number, Adapter);
@@ -239,6 +240,8 @@ void CFrontend::Close(void)
if(standby)
return;
printf("[fe%d] close frontend\n", fenumber);
if (!slave && config.diseqcType > MINI_DISEQC)
sendDiseqcStandby();