*****************************************************************************/
static void *Run( void * );
+static const char * const ppsz_intf_options[] = { "intf", "config", NULL };
+
/*****************************************************************************
*
*****************************************************************************/
{
int i;
const char *psz_intf;
- if( *p_intf->psz_intf == '$' )
+ /*if( *p_intf->psz_intf == '$' )
psz_intf = var_GetString( p_intf, p_intf->psz_intf+1 );
- else
+ else*/
psz_intf = p_intf->psz_intf;
for( i = 0; pp_shortcuts[i].psz_name; i++ )
{
return strdup( pp_shortcuts[i].psz_name );
}
- return config_GetPsz( p_intf, "lua-intf" );
+ return var_GetString( p_intf, "lua-intf" );
}
static const luaL_Reg p_reg[] = { { NULL, NULL } };
intf_sys_t *p_sys;
lua_State *L;
+ config_ChainParse( p_intf, "lua-", ppsz_intf_options, p_intf->p_cfg );
char *psz_name = GetModuleName( p_intf );
const char *psz_config;
bool b_config_set = false;
This is the `dummy' VLC Lua interface module.
Please specify a VLC Lua interface to load with the --lua-intf option.
VLC Lua interface modules include: `rc', `telnet' and `http'.
-For example: vlc -I lua --lua-intf rc]]
---You can also use the alternate syntax: vlc -I "lua{intf=rc}"]]
+For example: vlc -I lua --lua-intf rc
+You can also use the alternate syntax: vlc -I "lua{intf=rc}"]]
for line in string.gmatch(msg,"([^\n]+)\n*") do
vlc.msg.err(line)