Rémi Denis-Courmont
0ce6dd2156
lua: remove dead code
4 years ago
Alexandre Janniaux
616c92425c
lua: wrap luaL_register since Lua 5.2
luaL_setfuncs exists since lua5.2 and luaL_register was already
deprecated at that version. Using the luaL_register since Lua 5.2
prevents using the deprecated function but mostly also enforce the
future state of the code to be used on more platforms.
6 years ago
Romain Vimont
c9e2717771
lua: use new playlist and player
Change the lua API implementation (the native part) to use the new
player and the new playlist.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Steve Lhomme
5363279805
remove the $Id$ in the source code
7 years ago
Thomas Guillem
034a3f75a2
core: move playlist to playlist_legacy
To make room for the new playlist.
This playlist_legacy will be removed once all modules are using the new
playlist.
8 years ago
Thomas Guillem
c972cfd0f1
libvlc: add an option to disable lua
Playlist lua modules are probed for each opened input. This can take a lot of
time, it can double the time of a local parsing where no lua module are needed.
This time is negligible when playing a file.
Playlist lua probe can take 5ms on desktop (in comparison of 5ms for parsing),
or 50ms on some android devices.
This new option can be used by VLC ports to disable lua when using VLC for
parsing.
9 years ago
Rémi Denis-Courmont
ca74826ea7
lua: convert playlist parser to stream filter
ReadDir() is more logical and simpler than Demux() here.
9 years ago
Rémi Denis-Courmont
4d20314357
lua: remove no longer used arguments and return value
9 years ago
Rémi Denis-Courmont
6030a44d47
lua: revector input item generation
This splits vlclua_playlist_add_internal() in two functions. The new
function parses a single input item from a Lua script.
This also adds handling for a few error cases.
9 years ago
Pierre Ynard
20c426643a
luasd: probe scripts by name in separate helper
Ref #3353
10 years ago
Pierre Ynard
09b208c289
lua: privatize intf_sys_t
10 years ago
Pierre Ynard
8a57fce912
luasd: helper function to fetch longname
10 years ago
Ludovic Fauvet
2468da50f6
lua: replace deprecated functions
10 years ago
Ludovic Fauvet
398896b9c0
lua: merge new functions with the previous table
All lua plugins are now supposed to work with 5.3
10 years ago
Ludovic Fauvet
42e55422e9
lua: 'vlc' namespace needs to be handled differently
But apparently this is not enough, some lua plugins are still broken.
10 years ago
Jean-Baptiste Kempf
0baa8d54ab
lua: use lua_set_funcs to replace luaL_register in 5.3
Ref #14695
10 years ago
Jean-Baptiste Kempf
5dafc001bb
Modules: Remove tabs in source code
11 years ago
Rémi Denis-Courmont
bae1e6a097
Lua: refactor
11 years ago
Rémi Denis-Courmont
5097a47782
Lua: use <vlc_interrupt.h> instead of custom pipe for I/O
11 years ago
Rémi Denis-Courmont
d92c4331a6
msg: simplify msg_GenericVa() macro
11 years ago
Vinson Lee
41caaa08cd
lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility.
In Lua 5.3.0, luaL_checkint was deprecated.
This patch fixes this build error with Lua 5.3.0.
lua/demux.c: In function ‘vlclua_demux_peek’:
lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration]
int n = luaL_checkint( L, 1 );
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years ago
Hannes Domani
a916d7be15
lua: reactivate vlclua_net_poll() on windows
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 years ago
Francois Cartegnie
ba13ac0ca1
rename art_finder as meta_fetcher
12 years ago
Francois Cartegnie
058b871eb0
finder/fetcher: always use scripts doing local access
12 years ago
Rémi Denis-Courmont
bfe17fd33e
lua: vector out files descriptable table code
12 years ago
Rémi Denis-Courmont
781ff75140
Lua: set playlist object explicitly in state
12 years ago
Rémi Denis-Courmont
ca9b8b45c7
Lua intf: allocate file descriptor table dynamically
13 years ago
Rémi Denis-Courmont
f06dd9a263
Lua: remap file descriptors in Lua and GC at exit ( fixes #8898 )
13 years ago
Rémi Denis-Courmont
decf8e46e9
Lua: do not allocate useless pipe on Win32
13 years ago
Rémi Denis-Courmont
2e68de7297
lua: raise an erro from net.poll() when quitting
This forces Lua RC to exit cleanly in all cases.
13 years ago
Rémi Denis-Courmont
2dc214fbea
Lua: remove write-only set_intf()
13 years ago
Rémi Denis-Courmont
29396e29d8
lua: remove unused parameter
13 years ago
Rémi Denis-Courmont
c61fe43abf
lua: remove unused argument
13 years ago
Rémi Denis-Courmont
735b12358b
Lua: remove unused parameter
14 years ago
Rémi Denis-Courmont
fad80b62d8
Lua: revert should_die to using vlc_object_alive()
14 years ago
Rémi Denis-Courmont
2aca676ccc
Lua: remove lock_and_wait
If the interface script has nothing to do, then it can simply end and
the let the interface thread finish ahead of pf_deactivate.
This will _not_ automatically cause VLC to exit.
14 years ago
Kelly Anderson
c0f44d25b3
Consolidate lua includes in vlc.h
So lua 5.2 compatibility declarations can be made in one place.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
14 years ago
Rémi Duraffort
17bb975a23
lua: remove leading '__' in function name
15 years ago
Rémi Denis-Courmont
c368d560d3
Lua: use submodules for the different interfaces
This is better than second-guessing module_need().
15 years ago
Jean-Baptiste Kempf
61147a769e
Move /modules/misc/lua/ to /modules/lua
Lua is an important part of VLC and abusing misc has gone a bit too far...
15 years ago
Pierre Ynard
553bc045d8
lua telnet: handle <host>:<port> syntax
That's what the old interface did
15 years ago
Jean-Philippe André
3aa82557e6
Lua: load extensions in .vle files (Zip archives)
Main script's name must be "script.lua"
Modules are not supported yet
15 years ago
Rémi Duraffort
c04668ad5e
lua: factorize the right way.
16 years ago
Rémi Duraffort
ade1b3cb6b
lua: fix fonction prototype (should return a boolean).
16 years ago
Rémi Denis-Courmont
30aaaa4a20
LUA: store p_intf->p_sys separately
16 years ago
Rémi Denis-Courmont
c1d3b2601d
LUA: avoid leading underscores
16 years ago
Antoine Cellerier
2c24456389
Do not store p_this in a table value visible from lua code.
16 years ago
Antoine Cellerier
c58a5af740
Dynamically allocate the dir list to prevent potential array overflows (I believe that we were writing to the 5th element of a 4 element array since the luac commits).
16 years ago
Antoine Cellerier
3d693f8b8b
Setup lua module search path
For example, if runing script <user dir>/lua/intf/script.lua, the following paths will be added:
<user dir>/lua/modules/?.lua
<user dir>/lua/intf/modules/?.lua
<share dir>/lua/modules/?.lua
<share dir>/lua/intf/modules/?.lua
If runing script <share dir>/lua/intf/script.lua, the following paths will be added:
<share dir>/lua/modules/?.lua
<share dir>/lua/intf/modules/?.lua
16 years ago
Antoine Cellerier
5942b165dd
When scanning multiple lua scripts, create a new lua_State for each script. This will prevent data corruption from a previous script affecting subsequent scripts.
16 years ago