mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
CLuaInstance::GetRevision: Add second return value as a string...
...for hardware identification
- Set Lua api version to 1.22
Origin commit data
------------------
Branch: ni/coolstream
Commit: d06594dd60
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-08 (Tue, 08 Dec 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -744,12 +744,15 @@ int CLuaInstance::deleteSavedScreen(lua_State *L)
|
||||
|
||||
int CLuaInstance::GetRevision(lua_State *L)
|
||||
{
|
||||
unsigned int ret = 0;
|
||||
unsigned int rev = 0;
|
||||
std::string hw = "";
|
||||
#if HAVE_COOL_HARDWARE
|
||||
ret = cs_get_revision();
|
||||
hw = "Coolstream";
|
||||
#endif
|
||||
lua_pushinteger(L, ret);
|
||||
return 1;
|
||||
rev = cs_get_revision();
|
||||
lua_pushinteger(L, rev);
|
||||
lua_pushstring(L, hw.c_str());
|
||||
return 2;
|
||||
}
|
||||
|
||||
int CLuaInstance::PaintBox(lua_State *L)
|
||||
|
Reference in New Issue
Block a user