mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
cam_menu: avoid duplicate code
Origin commit data
------------------
Commit: f7f668d21f
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-01-18 (Sat, 18 Jan 2020)
Origin message was:
------------------
- cam_menu: avoid duplicate code
This commit is contained in:
@@ -65,6 +65,7 @@ const CMenuOptionChooser::keyval OPTIONS_CA_INIT_OPTIONS[] =
|
|||||||
{ 2, LOCALE_CA_INIT_2 }
|
{ 2, LOCALE_CA_INIT_2 }
|
||||||
};
|
};
|
||||||
#define OPTIONS_CA_INIT_OPTION_COUNT (sizeof(OPTIONS_CA_INIT_OPTIONS)/sizeof(CMenuOptionChooser::keyval))
|
#define OPTIONS_CA_INIT_OPTION_COUNT (sizeof(OPTIONS_CA_INIT_OPTIONS)/sizeof(CMenuOptionChooser::keyval))
|
||||||
|
|
||||||
const CMenuOptionChooser::keyval OPTIONS_CI_MODE_OPTIONS[] =
|
const CMenuOptionChooser::keyval OPTIONS_CI_MODE_OPTIONS[] =
|
||||||
{
|
{
|
||||||
{ 0, LOCALE_CI_MODE_0 },
|
{ 0, LOCALE_CI_MODE_0 },
|
||||||
@@ -73,13 +74,16 @@ const CMenuOptionChooser::keyval OPTIONS_CI_MODE_OPTIONS[] =
|
|||||||
};
|
};
|
||||||
#define OPTIONS_CI_MODE_OPTION_COUNT (sizeof(OPTIONS_CI_MODE_OPTIONS)/sizeof(CMenuOptionChooser::keyval))
|
#define OPTIONS_CI_MODE_OPTION_COUNT (sizeof(OPTIONS_CI_MODE_OPTIONS)/sizeof(CMenuOptionChooser::keyval))
|
||||||
|
|
||||||
#if BOXMODEL_VUPLUS
|
static const CMenuOptionChooser::keyval CI_CLOCK_OPTIONS[] = {
|
||||||
#define CI_CLOCK_OPTION_COUNT 3
|
|
||||||
static const CMenuOptionChooser::keyval CI_CLOCK_OPTIONS[CI_CLOCK_OPTION_COUNT] = {
|
|
||||||
{ 6, LOCALE_CI_CLOCK_NORMAL },
|
{ 6, LOCALE_CI_CLOCK_NORMAL },
|
||||||
{ 7, LOCALE_CI_CLOCK_HIGH },
|
{ 7, LOCALE_CI_CLOCK_HIGH }
|
||||||
{ 12, LOCALE_CI_CLOCK_EXTRA_HIGH }
|
#if BOXMODEL_VUPLUS
|
||||||
|
,{ 12, LOCALE_CI_CLOCK_EXTRA_HIGH }
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
#define CI_CLOCK_OPTION_COUNT (sizeof(CI_CLOCK_OPTIONS)/sizeof(CMenuOptionChooser::keyval))
|
||||||
|
|
||||||
|
#if BOXMODEL_VUPLUS
|
||||||
#define CI_DELAY_OPTION_COUNT 5
|
#define CI_DELAY_OPTION_COUNT 5
|
||||||
static const CMenuOptionChooser::keyval_ext CI_DELAY_OPTIONS[CI_DELAY_OPTION_COUNT] = {
|
static const CMenuOptionChooser::keyval_ext CI_DELAY_OPTIONS[CI_DELAY_OPTION_COUNT] = {
|
||||||
{ 16, NONEXISTANT_LOCALE, "16" },
|
{ 16, NONEXISTANT_LOCALE, "16" },
|
||||||
@@ -88,12 +92,6 @@ static const CMenuOptionChooser::keyval_ext CI_DELAY_OPTIONS[CI_DELAY_OPTION_COU
|
|||||||
{ 128, NONEXISTANT_LOCALE, "128" },
|
{ 128, NONEXISTANT_LOCALE, "128" },
|
||||||
{ 256, NONEXISTANT_LOCALE, "256" }
|
{ 256, NONEXISTANT_LOCALE, "256" }
|
||||||
};
|
};
|
||||||
#else
|
|
||||||
#define CI_CLOCK_OPTION_COUNT 2
|
|
||||||
static const CMenuOptionChooser::keyval CI_CLOCK_OPTIONS[CI_CLOCK_OPTION_COUNT] = {
|
|
||||||
{ 6, LOCALE_CI_CLOCK_NORMAL },
|
|
||||||
{ 7, LOCALE_CI_CLOCK_HIGH }
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void CCAMMenuHandler::init(void)
|
void CCAMMenuHandler::init(void)
|
||||||
|
Reference in New Issue
Block a user