/*****************************************************************************
- * playlist.c : Lua playlist demux module
+ * demux.c : Lua playlist demux module
*****************************************************************************
- * Copyright (C) 2007 the VideoLAN team
+ * Copyright (C) 2007-2008 the VideoLAN team
* $Id$
*
* Authors: Antoine Cellerier <dionoea at videolan tod org>
#endif
#include "vlc.h"
+#include "libs.h"
/*****************************************************************************
static int Control( demux_t *p_demux, int i_query, va_list args );
/*****************************************************************************
- *
+ * Demux specific functions
*****************************************************************************/
struct demux_sys_t
{
char *psz_filename;
};
-/*****************************************************************************
- *
- *****************************************************************************/
-
static int vlclua_demux_peek( lua_State *L )
{
demux_t *p_demux = (demux_t *)vlclua_get_this( L );
return 1;
}
-
+/*****************************************************************************
+ *
+ *****************************************************************************/
/* Functions to register */
static luaL_Reg p_reg[] =
{
{ "peek", vlclua_demux_peek },
- { "decode_uri", vlclua_decode_uri },
- { "resolve_xml_special_chars", vlclua_resolve_xml_special_chars },
- { "msg_dbg", vlclua_msg_dbg },
- { "msg_warn", vlclua_msg_warn },
- { "msg_err", vlclua_msg_err },
- { "msg_info", vlclua_msg_info },
{ NULL, NULL }
};
luaL_openlibs( L ); /* FIXME: Don't open all the libs? */
luaL_register( L, "vlc", p_reg );
+ luaopen_msg( L );
+ luaopen_strings( L );
lua_pushlightuserdata( L, p_demux );
lua_setfield( L, -2, "private" );
lua_pushstring( L, p_demux->psz_path );