mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
- neutrinoyparser: add functions to check online update
Signed-off-by: Thilo Graf <dbt@novatux.de> TODO: Missing documentation
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
#include <eitd/sectionsd.h>
|
#include <eitd/sectionsd.h>
|
||||||
#include <cs_api.h>
|
#include <cs_api.h>
|
||||||
#include <system/configure_network.h>
|
#include <system/configure_network.h>
|
||||||
|
#include <system/helpers.h>
|
||||||
|
|
||||||
extern CBouquetManager *g_bouquetManager;
|
extern CBouquetManager *g_bouquetManager;
|
||||||
|
|
||||||
@@ -121,6 +122,9 @@ const CNeutrinoYParser::TyFuncCall CNeutrinoYParser::yFuncCallList[]=
|
|||||||
{"get_partition_list", &CNeutrinoYParser::func_get_partition_list},
|
{"get_partition_list", &CNeutrinoYParser::func_get_partition_list},
|
||||||
{"get_boxtype", &CNeutrinoYParser::func_get_boxtype},
|
{"get_boxtype", &CNeutrinoYParser::func_get_boxtype},
|
||||||
{"get_boxmodel", &CNeutrinoYParser::func_get_boxmodel},
|
{"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_current_stream_info", &CNeutrinoYParser::func_get_current_stream_info},
|
||||||
{"get_timer_list", &CNeutrinoYParser::func_get_timer_list},
|
{"get_timer_list", &CNeutrinoYParser::func_get_timer_list},
|
||||||
{"set_timer_form", &CNeutrinoYParser::func_set_timer_form},
|
{"set_timer_form", &CNeutrinoYParser::func_set_timer_form},
|
||||||
@@ -850,7 +854,7 @@ std::string CNeutrinoYParser::func_get_partition_list(CyhookHandler *, std::str
|
|||||||
return yresult;
|
return yresult;
|
||||||
}
|
}
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
// y-func : get boxtypetext
|
// y-func : get boxtype
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
std::string CNeutrinoYParser::func_get_boxtype(CyhookHandler *, std::string)
|
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;
|
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
|
// y-func : get stream info
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, std::string)
|
std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, std::string)
|
||||||
|
@@ -73,6 +73,9 @@ public:
|
|||||||
// func TUXBOX
|
// func TUXBOX
|
||||||
std::string func_get_boxtype(CyhookHandler *hh, std::string para);
|
std::string func_get_boxtype(CyhookHandler *hh, std::string para);
|
||||||
std::string func_get_boxmodel(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__*/
|
#endif /*__nhttpd_neutrinoyparser_h__*/
|
||||||
|
Reference in New Issue
Block a user