mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
neutrinoyparser: add functions to check online update
Origin commit data
------------------
Branch: ni/coolstream
Commit: d0f493e7d5
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-03-17 (Fri, 17 Mar 2023)
Origin message was:
------------------
- neutrinoyparser: add functions to check online update
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -32,6 +32,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>
|
||||||
|
|
||||||
#include "gui/plugins.h"
|
#include "gui/plugins.h"
|
||||||
extern CPlugins *g_Plugins;
|
extern CPlugins *g_Plugins;
|
||||||
@@ -125,6 +126,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},
|
||||||
@@ -858,7 +862,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)
|
||||||
{
|
{
|
||||||
@@ -884,6 +888,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)
|
||||||
|
@@ -77,6 +77,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