mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
CLuaInstance: Use CLuaVideo for video, CLuaMisc for misc functions
- The old version of the video and misc functions is deprecated but still valid
This commit is contained in:
@@ -20,32 +20,43 @@
|
||||
#ifndef _LUAVIDEO_H
|
||||
#define _LUAVIDEO_H
|
||||
|
||||
/*
|
||||
class CLuaVideo
|
||||
{
|
||||
public:
|
||||
CLuaVideo() {};
|
||||
~CLuaVideo() {};
|
||||
};
|
||||
*/
|
||||
|
||||
class CLuaInstVideo
|
||||
{
|
||||
static CLuaData *CheckData(lua_State *L, int narg);
|
||||
public:
|
||||
CLuaInstVideo() {};
|
||||
~CLuaInstVideo() {};
|
||||
static CLuaInstVideo* getInstance();
|
||||
// static void LuaVideoRegister(lua_State *L);
|
||||
static void LuaVideoRegister(lua_State *L);
|
||||
|
||||
/* deprecated functions */
|
||||
static int setBlank_old(lua_State *L);
|
||||
static int ShowPicture_old(lua_State *L);
|
||||
static int StopPicture_old(lua_State *L);
|
||||
static int PlayFile_old(lua_State *L);
|
||||
static int zapitStopPlayBack_old(lua_State *L);
|
||||
static int channelRezap_old(lua_State *L);
|
||||
static int createChannelIDfromUrl_old(lua_State *L);
|
||||
|
||||
// private:
|
||||
private:
|
||||
static CLuaVideo *VideoCheckData(lua_State *L, int n);
|
||||
static int VideoNew(lua_State *L);
|
||||
static int setBlank(lua_State *L);
|
||||
static int ShowPicture(lua_State *L);
|
||||
static int StopPicture(lua_State *L);
|
||||
static int PlayFile(lua_State *L);
|
||||
static int zapitStopPlayBack(lua_State *L);
|
||||
static int channelRezap(lua_State *L);
|
||||
static int createChannelIDfromUrl(lua_State *L);
|
||||
static int VideoDelete(lua_State *L);
|
||||
|
||||
static void videoFunctionDeprecated(lua_State *L, std::string oldFunc);
|
||||
};
|
||||
|
||||
#endif //_LUAVIDEO_H
|
||||
|
Reference in New Issue
Block a user