mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- neutrinoyparser: add function 'get_boxmodel'
This commit is contained in:
@@ -119,6 +119,7 @@ const CNeutrinoYParser::TyFuncCall CNeutrinoYParser::yFuncCallList[]=
|
||||
{"umount_get_list", &CNeutrinoYParser::func_unmount_get_list},
|
||||
{"get_partition_list", &CNeutrinoYParser::func_get_partition_list},
|
||||
{"get_boxtype", &CNeutrinoYParser::func_get_boxtype},
|
||||
{"get_boxmodel", &CNeutrinoYParser::func_get_boxmodel},
|
||||
{"get_current_stream_info", &CNeutrinoYParser::func_get_current_stream_info},
|
||||
{"get_timer_list", &CNeutrinoYParser::func_get_timer_list},
|
||||
{"set_timer_form", &CNeutrinoYParser::func_set_timer_form},
|
||||
@@ -734,6 +735,32 @@ std::string CNeutrinoYParser::func_get_boxtype(CyhookHandler *, std::string)
|
||||
return boxname;
|
||||
}
|
||||
//-------------------------------------------------------------------------
|
||||
// y-func : get boxmodel
|
||||
//-------------------------------------------------------------------------
|
||||
std::string CNeutrinoYParser::func_get_boxmodel(CyhookHandler *, std::string)
|
||||
{
|
||||
unsigned int system_rev = cs_get_revision();
|
||||
std::string boxmodel = "Unknown";
|
||||
|
||||
switch(system_rev)
|
||||
{
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 10:
|
||||
boxmodel = "Nevis";
|
||||
break;
|
||||
case 9:
|
||||
case 11:
|
||||
boxmodel = "Apollo";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return boxmodel;
|
||||
}
|
||||
//-------------------------------------------------------------------------
|
||||
// y-func : get stream info
|
||||
//-------------------------------------------------------------------------
|
||||
std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, std::string)
|
||||
|
@@ -67,6 +67,7 @@ public:
|
||||
|
||||
// func TUXBOX
|
||||
std::string func_get_boxtype(CyhookHandler *hh, std::string para);
|
||||
std::string func_get_boxmodel(CyhookHandler *hh, std::string para);
|
||||
};
|
||||
|
||||
#endif /*__nhttpd_neutrinoyparser_h__*/
|
||||
|
Reference in New Issue
Block a user