Filip Roséen
31ea536898
lua: reserved identifier in function names
* renamed `__PushCommand` to `PushCommand__` since the former is a
reserved identifier and therefor ill-formed according to the C
ISO Standard.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Thomas Guillem
183d5cda47
dialog: use new API
10 years ago
Rémi Denis-Courmont
fe30f8c0c3
Lua: add sockets to extensions ( fixes #9495 )
12 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
Jean-Philippe André
5980be37ec
Lua: allow killing Extensions
If an Extension didn't respond in 10s, a dialog pops up and allows
the user to kill the Extension (thread cancellation)
15 years ago
Rémi Duraffort
041923136e
lua extensions: remove dummy function (moreover vlc_join is simpler to understand)
16 years ago
Rémi Duraffort
2d0aee25f1
lua extensions: use an enum and remove demuy declaration.
16 years ago
Antoine Cellerier
7478dfe4ed
Do not store extension pointer in a variable visible from the lua code.
16 years ago
Srikanth Raju
eeda6528dd
Lua: Add new callback playing_changed for playing status changes
Signed-off-by: Jean-Philippe André <jpeg@videolan.org>
16 years ago
Srikanth Raju
31d2afeed7
Lua: Allow arguments to be passed to lua functions in lua_ExecuteFunction
Signed-off-by: Jean-Philippe André <jpeg@videolan.org>
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
Jean-Philippe André
1f3bd0cc83
Extensions: call lua_DialogFlush after Lua call
This flushes the dialog (updates it at the UI level) after a Lua
function return.
16 years ago
Jean-Philippe André
7dcda04fec
Lua: dialog auto-flush at end of function (pcall)
16 years ago
Jean-Philippe André
dfaef0e6be
Extensions: New capability "meta-listener". Push unique commands
PushCommand takes now a new parameter: b_unique. If set, do not push
this command twice in the command queue.
16 years ago
Jean-Philippe André
eaa7302d6a
Extensions: new script capability "input-listener"
When the input changes (next track, ...), every capable extension
will execute the function "input_changed"
16 years ago
Pierre d'Herbemont
9ceb897c7b
lua/extension: Export extension_SetInput().
16 years ago
Jean-Philippe André
9f49f1112e
Extensions: fix extensions manager's locking scheme
16 years ago
Jean-Philippe André
1bbf6f1c45
Extensions: core library
This contains:
- Extensions manager
- Extensions activation / deactivation functions
- Separate threads for each extension
- Lua specific functions for calling the script
17 years ago