diff --git a/src/nhttpd/tuxboxapi/coolstream/neutrinoyparser.cpp b/src/nhttpd/tuxboxapi/coolstream/neutrinoyparser.cpp index 593c74c51..dce0ad5df 100644 --- a/src/nhttpd/tuxboxapi/coolstream/neutrinoyparser.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/neutrinoyparser.cpp @@ -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) diff --git a/src/nhttpd/tuxboxapi/coolstream/neutrinoyparser.h b/src/nhttpd/tuxboxapi/coolstream/neutrinoyparser.h index 6b934c37d..d21e8afba 100644 --- a/src/nhttpd/tuxboxapi/coolstream/neutrinoyparser.h +++ b/src/nhttpd/tuxboxapi/coolstream/neutrinoyparser.h @@ -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__*/