vlc.c File Reference

Include dependency graph for vlc.c:


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 Documentation

#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().

#define TRY_META ( a,
b   ) 

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().


Function Documentation

int __vlclua_add_modules_path ( vlc_object_t obj,
lua_State L,
const char *  psz_filename 
)

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 
)

void __vlclua_read_custom_meta_data ( vlc_object_t p_this,
lua_State L,
input_item_t p_input 
)

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]

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]

References count, DIR_SEP, and ppsz_lua_exts.

Referenced by __vlclua_add_modules_path().

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  ) 

char* vlclua_find_file ( vlc_object_t p_this,
const char *  psz_luadirname,
const char *  psz_name 
)

int vlclua_scripts_batch_execute ( vlc_object_t p_this,
const char *  luadirname,
int(*)(vlc_object_t *, const char *, void *)  func,
void *  user_data 
)


Variable Documentation

const char* ppsz_lua_exts[] = { ".luac", ".lua", NULL } [static]


Generated on Tue May 25 08:05:26 2010 for VLC by  doxygen 1.5.6