
Defines | |
| #define | INTF_TEXT N_("Lua interface") |
| #define | INTF_LONGTEXT N_("Lua interface module to load") |
| #define | CONFIG_TEXT N_("Lua interface configuration") |
| #define | CONFIG_LONGTEXT N_("Lua interface configuration string. Format is: '[\"<interface module name>\"] = { <option> = <value>, ...}, ...'.") |
| #define | MAX_DIR_LIST_SIZE 5 |
| #define | TRY_META(a, b) |
Functions | |
| static int | vlc_sd_probe_Open (vlc_object_t *) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static int | file_select (const char *file) |
| static int | file_compare (const char **a, const char **b) |
| int | vlclua_dir_list (vlc_object_t *p_this, const char *luadirname, char ***pppsz_dir_list) |
| void | vlclua_dir_list_free (char **ppsz_dir_list) |
| int | vlclua_scripts_batch_execute (vlc_object_t *p_this, const char *luadirname, int(*func)(vlc_object_t *, const char *, void *), void *user_data) |
| char * | vlclua_find_file (vlc_object_t *p_this, const char *psz_luadirname, const char *psz_name) |
| void | __vlclua_read_meta_data (vlc_object_t *p_this, lua_State *L, input_item_t *p_input) |
| void | __vlclua_read_custom_meta_data (vlc_object_t *p_this, lua_State *L, input_item_t *p_input) |
| void | __vlclua_read_options (vlc_object_t *p_this, lua_State *L, int *pi_options, char ***pppsz_options) |
| Playlist item table should be on top of the stack when this is called. | |
| int | __vlclua_playlist_add_internal (vlc_object_t *p_this, lua_State *L, playlist_t *p_playlist, input_item_t *p_parent, bool b_play) |
| static int | vlclua_add_modules_path_inner (lua_State *L, const char *psz_path) |
| int | __vlclua_add_modules_path (vlc_object_t *obj, lua_State *L, const char *psz_filename) |
Variables | |
| static const char * | ppsz_lua_exts [] = { ".luac", ".lua", NULL } |
| #define CONFIG_LONGTEXT N_("Lua interface configuration string. Format is: '[\"<interface module name>\"] = { <option> = <value>, ...}, ...'.") |
| #define CONFIG_TEXT N_("Lua interface configuration") |
| #define INTF_LONGTEXT N_("Lua interface module to load") |
| #define INTF_TEXT N_("Lua interface") |
| #define MAX_DIR_LIST_SIZE 5 |
Referenced by vlclua_dir_list().
Value:
lua_getfield( L, -1, a ); \ if( lua_isstring( L, -1 ) && \ strcmp( lua_tostring( L, -1 ), "" ) ) \ { \ char *psz_value = strdup( lua_tostring( L, -1 ) ); \ EnsureUTF8( psz_value ); \ msg_Dbg( p_this, #b ": %s", psz_value ); \ input_item_Set ## b ( p_input, psz_value ); \ free( psz_value ); \ } \ lua_pop( L, 1 );
Referenced by __vlclua_read_meta_data().
| int __vlclua_add_modules_path | ( | vlc_object_t * | obj, | |
| lua_State * | L, | |||
| const char * | psz_filename | |||
| ) |
References count, DIR_SEP_CHAR, strdup(), vlclua_add_modules_path_inner(), vlclua_dir_list(), and vlclua_dir_list_free().
| int __vlclua_playlist_add_internal | ( | vlc_object_t * | p_this, | |
| lua_State * | L, | |||
| playlist_t * | p_playlist, | |||
| input_item_t * | p_parent, | |||
| bool | b_play | |||
| ) |
References input_item_NewExt, input_item_node_AppendItem(), input_item_node_Create(), input_item_node_Delete(), input_item_node_PostAndDelete(), msg_Dbg, msg_Warn, playlist_AddInput(), PLAYLIST_APPEND, PLAYLIST_END, PLAYLIST_GO, PLAYLIST_PREPARSE, psz_name, vlc_gc_decref, VLC_INPUT_OPTION_TRUSTED, vlclua_read_custom_meta_data, vlclua_read_meta_data, and vlclua_read_options.
| void __vlclua_read_custom_meta_data | ( | vlc_object_t * | p_this, | |
| lua_State * | L, | |||
| input_item_t * | p_input | |||
| ) |
References input_item_AddInfo(), msg_Dbg, and msg_Warn.
| void __vlclua_read_meta_data | ( | vlc_object_t * | p_this, | |
| lua_State * | L, | |||
| input_item_t * | p_input | |||
| ) |
References TRY_META.
| void __vlclua_read_options | ( | vlc_object_t * | p_this, | |
| lua_State * | L, | |||
| int * | pi_options, | |||
| char *** | pppsz_options | |||
| ) |
Playlist item table should be on top of the stack when this is called.
References INSERT_ELEM, msg_Dbg, msg_Warn, psz_option, and strdup().
| static int file_compare | ( | const char ** | a, | |
| const char ** | b | |||
| ) | [static] |
Referenced by vlc_sd_probe_Open(), and vlclua_scripts_batch_execute().
| static int file_select | ( | const char * | file | ) | [static] |
References i, and ppsz_lua_exts.
Referenced by vlc_sd_probe_Open(), and vlclua_scripts_batch_execute().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
| static int vlc_sd_probe_Open | ( | vlc_object_t * | obj | ) | [static] |
| static int vlclua_add_modules_path_inner | ( | lua_State * | L, | |
| const char * | psz_path | |||
| ) | [static] |
| int vlclua_dir_list | ( | vlc_object_t * | p_this, | |
| const char * | luadirname, | |||
| char *** | pppsz_dir_list | |||
| ) |
References asprintf(), config_GetDataDir, config_GetLibDir(), config_GetUserDir(), DIR_SEP, i, likely, MAX_DIR_LIST_SIZE, VLC_DATA_DIR, VLC_EGENERIC, and VLC_SUCCESS.
Referenced by __vlclua_add_modules_path(), vlc_sd_probe_Open(), vlclua_datadir_list(), vlclua_find_file(), and vlclua_scripts_batch_execute().
| void vlclua_dir_list_free | ( | char ** | ppsz_dir_list | ) |
| char* vlclua_find_file | ( | vlc_object_t * | p_this, | |
| const char * | psz_luadirname, | |||
| const char * | psz_name | |||
| ) |
References asprintf(), DIR_SEP, ppsz_lua_exts, vlc_stat(), vlclua_dir_list(), and vlclua_dir_list_free().
Referenced by Open_LuaIntf(), and Open_LuaSD().
| int vlclua_scripts_batch_execute | ( | vlc_object_t * | p_this, | |
| const char * | luadirname, | |||
| int(*)(vlc_object_t *, const char *, void *) | func, | |||
| void * | user_data | |||
| ) |
References asprintf(), DIR_SEP, file_compare(), file_select(), likely, msg_Dbg, VLC_EGENERIC, vlc_scandir(), VLC_SUCCESS, vlclua_dir_list(), and vlclua_dir_list_free().
Referenced by FetchMeta(), FindArt(), Import_LuaPlaylist(), ReadMeta(), and ScanExtensions().
const char* ppsz_lua_exts[] = { ".luac", ".lua", NULL } [static] |
Referenced by file_select(), vlclua_add_modules_path_inner(), and vlclua_find_file().
1.5.6