mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
zapit/include/zapit/frontend_c.h: add fe type helpers, change modes enum order
This commit is contained in:
@@ -90,11 +90,11 @@ class CFrontend
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
FE_MODE_UNUSED,
|
||||||
FE_MODE_INDEPENDENT,
|
FE_MODE_INDEPENDENT,
|
||||||
FE_MODE_MASTER,
|
FE_MODE_MASTER,
|
||||||
FE_MODE_LINK_LOOP,
|
FE_MODE_LINK_LOOP,
|
||||||
FE_MODE_LINK_TWIN,
|
FE_MODE_LINK_TWIN
|
||||||
FE_MODE_UNUSED,
|
|
||||||
} fe_work_mode_t;
|
} fe_work_mode_t;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -255,5 +255,8 @@ class CFrontend
|
|||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
bool isCable() { return (info.type == FE_QAM); }
|
||||||
|
bool isSat() { return (info.type == FE_QPSK); }
|
||||||
|
fe_type_t getType() { return info.type; }
|
||||||
};
|
};
|
||||||
#endif /* __zapit_frontend_h__ */
|
#endif /* __zapit_frontend_h__ */
|
||||||
|
Reference in New Issue
Block a user