CLuaInstance: Move types, definitions & functions from

luainstance.cpp/.h to luainstance_helpers.cpp/.h

 - No api changes, code only


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1238b0c677
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-12 (Sat, 12 Dec 2015)



------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2015-12-12 10:21:39 +01:00
parent 0a59ebee82
commit 256500c3e4
5 changed files with 255 additions and 198 deletions

View File

@@ -33,27 +33,11 @@ extern "C" {
#include <configfile.h>
#include <vector>
#include "luainstance_helpers.h"
#define LUA_API_VERSION_MAJOR 1
#define LUA_API_VERSION_MINOR 22
typedef std::pair<lua_Integer, Font*> fontmap_pair_t;
typedef std::map<lua_Integer, Font*> fontmap_t;
typedef fontmap_t::iterator fontmap_iterator_t;
typedef std::pair<lua_Integer, fb_pixel_t*> screenmap_pair_t;
typedef std::map<lua_Integer, fb_pixel_t*> screenmap_t;
typedef screenmap_t::iterator screenmap_iterator_t;
/* this is stored as userdata in the lua_State */
struct CLuaData
{
CFBWindow *fbwin;
CRCInput *rcinput;
fontmap_t fontmap;
screenmap_t screenmap;
bool moviePlayerBlocked;
};
struct CLuaMenuItem
{
int int_val;
@@ -227,12 +211,6 @@ private:
lua_State* lua;
void registerFunctions();
static bool _luaL_checkbool(lua_State *L, int numArg);
static void paramBoolDeprecated(lua_State *L, const char* val);
static void functionDeprecated(lua_State *L, const char* oldFunc, const char* newFunc);
static void paramDeprecated(lua_State *L, const char* oldParam, const char* newParam);
static lua_Unsigned checkMagicMask(lua_Unsigned &col);
static int GetRevision(lua_State *L);
static int NewWindow(lua_State *L);
static int saveScreen(lua_State *L);
@@ -333,11 +311,6 @@ private:
static int LuaConfigFileGetBool(lua_State *L);
static int LuaConfigFileSetBool(lua_State *L);
static int LuaConfigFileDelete(lua_State *L);
static bool tableLookup(lua_State*, const char*, std::string&);
static bool tableLookup(lua_State*, const char*, lua_Integer&);
static bool tableLookup(lua_State*, const char*, lua_Unsigned&);
static bool tableLookup(lua_State*, const char*, void**);
static bool tableLookup(lua_State*, const char*, bool &value);
static int checkVersion(lua_State *L);
static int createChannelIDfromUrl(lua_State *L);