diff --git a/src/nhttpd/tuxboxapi/neutrinoyparser.cpp b/src/nhttpd/tuxboxapi/neutrinoyparser.cpp index c29ac488e..f3701fb76 100644 --- a/src/nhttpd/tuxboxapi/neutrinoyparser.cpp +++ b/src/nhttpd/tuxboxapi/neutrinoyparser.cpp @@ -33,6 +33,7 @@ #include #include #include +#include extern CBouquetManager *g_bouquetManager; @@ -121,6 +122,9 @@ const CNeutrinoYParser::TyFuncCall CNeutrinoYParser::yFuncCallList[]= {"get_partition_list", &CNeutrinoYParser::func_get_partition_list}, {"get_boxtype", &CNeutrinoYParser::func_get_boxtype}, {"get_boxmodel", &CNeutrinoYParser::func_get_boxmodel}, + {"get_boxname", &CNeutrinoYParser::func_get_boxname}, + {"get_revision", &CNeutrinoYParser::func_get_revision}, + {"get_chip_type", &CNeutrinoYParser::func_get_chip_type}, {"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}, @@ -850,7 +854,7 @@ std::string CNeutrinoYParser::func_get_partition_list(CyhookHandler *, std::str return yresult; } //------------------------------------------------------------------------- -// y-func : get boxtypetext +// y-func : get boxtype //------------------------------------------------------------------------- std::string CNeutrinoYParser::func_get_boxtype(CyhookHandler *, std::string) { @@ -876,6 +880,27 @@ std::string CNeutrinoYParser::func_get_boxmodel(CyhookHandler *, std::string) return g_info.hw_caps->boxarch; } //------------------------------------------------------------------------- +// y-func : get boxname +//------------------------------------------------------------------------- +std::string CNeutrinoYParser::func_get_boxname(CyhookHandler *, std::string) +{ + return g_info.hw_caps->boxname; +} +//------------------------------------------------------------------------- +// y-func : get revision +//------------------------------------------------------------------------- +std::string CNeutrinoYParser::func_get_revision(CyhookHandler *, std::string) +{ + return to_string(cs_get_revision()); +} +//------------------------------------------------------------------------- +// y-func : get chip type +//------------------------------------------------------------------------- +std::string CNeutrinoYParser::func_get_chip_type(CyhookHandler *, std::string) +{ + return to_string(cs_get_chip_type()); +} +//------------------------------------------------------------------------- // y-func : get stream info //------------------------------------------------------------------------- std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, std::string) diff --git a/src/nhttpd/tuxboxapi/neutrinoyparser.h b/src/nhttpd/tuxboxapi/neutrinoyparser.h index aa4709c06..f22c3b321 100644 --- a/src/nhttpd/tuxboxapi/neutrinoyparser.h +++ b/src/nhttpd/tuxboxapi/neutrinoyparser.h @@ -73,6 +73,9 @@ public: // func TUXBOX std::string func_get_boxtype(CyhookHandler *hh, std::string para); std::string func_get_boxmodel(CyhookHandler *hh, std::string para); + std::string func_get_boxname(CyhookHandler *hh, std::string para); + std::string func_get_revision(CyhookHandler *hh, std::string para); + std::string func_get_chip_type(CyhookHandler *hh, std::string para); }; #endif /*__nhttpd_neutrinoyparser_h__*/