neutrinoyparser: add function 'get_boxmodel'

Origin commit data
------------------
Branch: ni/coolstream
Commit: d81b50523c
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-03-26 (Wed, 26 Mar 2014)

Origin message was:
------------------
- neutrinoyparser: add function 'get_boxmodel'

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2014-03-26 12:22:52 +01:00
parent 17838600dd
commit 6a9ec9da39
2 changed files with 28 additions and 0 deletions

View File

@@ -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)

View File

@@ -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__*/