
Data Structures | |
| struct | vlclua_callback_t |
Functions | |
| int | vlclua_pushvalue (lua_State *L, int i_type, vlc_value_t val) |
| static int | vlclua_tovalue (lua_State *L, int i_type, vlc_value_t *val) |
| static int | vlclua_var_get (lua_State *L) |
| static int | vlclua_var_set (lua_State *L) |
| static int | vlclua_var_create (lua_State *L) |
| static int | vlclua_var_get_list (lua_State *L) |
| static int | vlclua_command (lua_State *L) |
| static int | vlclua_libvlc_command (lua_State *L) |
| int | __vlclua_var_toggle_or_set (lua_State *L, vlc_object_t *p_obj, const char *psz_name) |
| static const void * | luaL_checklightuserdata (lua_State *L, int narg) |
| static int | vlclua_callback (vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data) |
| static int | vlclua_add_callback (lua_State *L) |
| static int | vlclua_del_callback (lua_State *L) |
| static int | vlclua_trigger_callback (lua_State *L) |
| void | luaopen_variables (lua_State *L) |
Variables | |
| static const luaL_Reg | vlclua_var_reg [] |
| int __vlclua_var_toggle_or_set | ( | lua_State * | L, | |
| vlc_object_t * | p_obj, | |||
| const char * | psz_name | |||
| ) |
References luaL_checkboolean(), var_GetBool, var_SetBool, and vlclua_error.
| static const void* luaL_checklightuserdata | ( | lua_State * | L, | |
| int | narg | |||
| ) | [inline, static] |
Referenced by vlclua_del_callback().
| void luaopen_variables | ( | lua_State * | L | ) |
| static int vlclua_add_callback | ( | lua_State * | L | ) | [static] |
| static int vlclua_callback | ( | vlc_object_t * | p_this, | |
| char const * | psz_var, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References vlclua_callback_t::i_index, vlclua_callback_t::i_type, vlclua_callback_t::L, msg_Err, VLC_EGENERIC, VLC_SUCCESS, and vlclua_pushvalue().
Referenced by vlclua_add_callback(), and vlclua_del_callback().
| static int vlclua_command | ( | lua_State * | L | ) | [static] |
References psz_name, var_Command, vlclua_get_this(), and vlclua_push_ret().
| static int vlclua_del_callback | ( | lua_State * | L | ) | [static] |
References luaL_checklightuserdata(), var_DelCallback, vlclua_callback(), and vlclua_error.
| static int vlclua_libvlc_command | ( | lua_State * | L | ) | [static] |
References i_type, vlc_object_t::p_libvlc, vlc_value_t::psz_string, strdup(), var_Set, var_Type, VLC_VAR_ISCOMMAND, vlclua_get_this(), and vlclua_push_ret().
| int vlclua_pushvalue | ( | lua_State * | L, | |
| int | i_type, | |||
| vlc_value_t | val | |||
| ) |
References vlc_value_t::b_bool, vlc_value_t::f_float, i, vlc_list_t::i_count, vlc_value_t::i_int, vlc_value_t::i_time, vlc_value_t::p_list, vlc_list_t::p_values, vlc_list_t::pi_types, vlc_value_t::psz_string, VLC_VAR_ADDRESS, VLC_VAR_BOOL, VLC_VAR_CLASS, VLC_VAR_FLOAT, VLC_VAR_INTEGER, VLC_VAR_LIST, VLC_VAR_MUTEX, VLC_VAR_STRING, VLC_VAR_TIME, VLC_VAR_VOID, vlclua_error, and vlclua_pushvalue().
Referenced by vlclua_callback(), vlclua_pushvalue(), vlclua_var_get(), and vlclua_var_get_list().
| static int vlclua_tovalue | ( | lua_State * | L, | |
| int | i_type, | |||
| vlc_value_t * | val | |||
| ) | [static] |
References vlc_value_t::b_bool, vlc_value_t::f_float, vlc_value_t::i_int, vlc_value_t::i_time, luaL_checkboolean(), vlc_value_t::psz_string, VLC_VAR_ADDRESS, VLC_VAR_BOOL, VLC_VAR_CLASS, VLC_VAR_FLOAT, VLC_VAR_INTEGER, VLC_VAR_LIST, VLC_VAR_MUTEX, VLC_VAR_STRING, VLC_VAR_TIME, VLC_VAR_VOID, and vlclua_error.
Referenced by vlclua_var_create(), and vlclua_var_set().
| static int vlclua_trigger_callback | ( | lua_State * | L | ) | [static] |
References var_TriggerCallback, and vlclua_push_ret().
| static int vlclua_var_create | ( | lua_State * | L | ) | [static] |
References i_type, var_Create, var_Set, VLC_SUCCESS, VLC_VAR_BOOL, VLC_VAR_FLOAT, VLC_VAR_STRING, vlclua_push_ret(), and vlclua_tovalue().
| static int vlclua_var_get | ( | lua_State * | L | ) | [static] |
References i_type, var_Get, var_Type, VLC_SUCCESS, and vlclua_pushvalue().
| static int vlclua_var_get_list | ( | lua_State * | L | ) | [static] |
References text, var_Change, var_FreeList(), VLC_VAR_GETLIST, VLC_VAR_LIST, vlclua_push_ret(), and vlclua_pushvalue().
| static int vlclua_var_set | ( | lua_State * | L | ) | [static] |
References i_type, var_Set, var_Type, vlclua_push_ret(), and vlclua_tovalue().
const luaL_Reg vlclua_var_reg[] [static] |
Initial value:
{
{ "get", vlclua_var_get },
{ "get_list", vlclua_var_get_list },
{ "set", vlclua_var_set },
{ "create", vlclua_var_create },
{ "add_callback", vlclua_add_callback },
{ "del_callback", vlclua_del_callback },
{ "trigger_callback", vlclua_trigger_callback },
{ "command", vlclua_command },
{ "libvlc_command", vlclua_libvlc_command },
{ NULL, NULL }
}
Referenced by luaopen_variables().
1.5.6