From 740073b2c065fbb5c6cff9ff4b3ebb9376d480ea Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 16 Jan 2013 15:41:58 +0400 Subject: [PATCH] zapit/include/zapit/frontend_c.h: add fe type helpers, change modes enum order --- src/zapit/include/zapit/frontend_c.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/zapit/include/zapit/frontend_c.h b/src/zapit/include/zapit/frontend_c.h index dd15b998f..461c06c6d 100644 --- a/src/zapit/include/zapit/frontend_c.h +++ b/src/zapit/include/zapit/frontend_c.h @@ -90,11 +90,11 @@ class CFrontend { public: typedef enum { + FE_MODE_UNUSED, FE_MODE_INDEPENDENT, FE_MODE_MASTER, FE_MODE_LINK_LOOP, - FE_MODE_LINK_TWIN, - FE_MODE_UNUSED, + FE_MODE_LINK_TWIN } fe_work_mode_t; private: @@ -255,5 +255,8 @@ class CFrontend return true; 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__ */