Steve Lhomme
48442d3536
lua: use the proper prototype for Lua C callbacks
The code fails to build with -Werror=incompatible-pointer-types otherwise
6 years ago
Steve Lhomme
87882838d8
lua: don't force pushing an object to be released
We could release all kinds of things we push (despite the function name).
6 years ago
Steve Lhomme
ad7df57810
lua: fix the pushed release callback prototype
Both callbacks don't return a value so don't force a callback that need one.
6 years ago
Steve Lhomme
49baa7dba6
lua: fix vlclua_release_vlc_object prototype
The pushed C function must return how many items it pushed in the Lua stack.
6 years ago
Quentin Chateau
e965992290
lua: fixed object release function
As a single metatable for vlc_object exists
all lua objects in objects.c would be freed
with the same release function
That caused segmentation faults
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
6 years ago
Thomas Guillem
c19b8b2307
lua: remove unused code
7 years ago
Thomas Guillem
30fcfbae4f
lua: fix typo
7 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
Rémi Denis-Courmont
10a4eda3fd
lua/objects: remove dummy object.find
7 years ago
Rémi Denis-Courmont
7ec21fc721
lua/objects: remove dead code
7 years ago
Rémi Denis-Courmont
d2c1bc4433
aout: introduce aout_Hold() and aout_Release()
Type-safe replacements for vlc_object_hold() and vlc_object_release()
(as discussed during the last workshop).
7 years ago
Rémi Denis-Courmont
a990818d1a
vout: introduce vout_Hold() and vout_Release()
Type-safe replacements for vlc_object_hold() and vlc_object_release()
(as discussed during the last workshop).
7 years ago
Rémi Denis-Courmont
d55765b605
input: introduce input_Hold() and input_Release()
Type-safe replacements for vlc_object_hold() and vlc_object_release()
(as discussed during the last workshop).
7 years ago
Rémi Denis-Courmont
5ee4818677
lua: don't hold/release root or playlist
Those objects are ascendents of the Lua interface, they cannot go away.
7 years ago
Rémi Denis-Courmont
c06db92c18
lua/objects: playlist cannot be nul
7 years ago
Rémi Denis-Courmont
d0b51794db
lua: privatize vlclua_push_vlc_object()
7 years ago
Rémi Denis-Courmont
cb105cd837
lua: reorder to avoid forward declaration
7 years ago
Rémi Denis-Courmont
e48a8a9eb2
objects: add vlc_object_instance()
...instead of open-coded access to obj->obj.libvlc
7 years ago
Steve Lhomme
5363279805
remove the $Id$ in the source code
7 years ago
Rémi Denis-Courmont
c240692f0b
Common structure for VLC common object members, document
10 years ago
Rémi Denis-Courmont
781ff75140
Lua: set playlist object explicitly in state
12 years ago
Rémi Denis-Courmont
3ccae49f75
Lua: check vlclua_get_playlist_internal() for NULL
12 years ago
Rémi Denis-Courmont
6766179f9a
Cosmetic
12 years ago
Rémi Denis-Courmont
360a96dde6
interfaces: use playlist_GetAout() where applicable ( fixes #7601 )
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
Akash Mehrotra
cb4433edbd
LUA:Expose aout
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
15 years ago
Akash Mehrotra
b743e4aa60
LUA:Expose vout
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
15 years ago
Rémi Denis-Courmont
7510a32ec2
LUA: simplify pushing VLC object
Always use the common GC wrapper around vlc_object_release(). While it
is not really required for the instance and the playlist object, the
overhead is negligible in LUA context.
15 years ago
Rémi Denis-Courmont
8d66381176
LUA: remove unused typedef
15 years ago
Rémi Duraffort
17bb975a23
lua: remove leading '__' in function name
15 years ago
Rémi Denis-Courmont
2f49119c3b
LUA: remove find_name() before something starts to use it
15 years ago
Rémi Denis-Courmont
9d00228682
Remove unused FIND_PARENT
15 years ago
Rémi Denis-Courmont
7e8f1ce662
Youpiiiiiiiiiiiiiiiiiiie! ... err, remove vlc_object_find()
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
Antoine Cellerier
f782f86eb4
Use pushliteral instead of pushstring where possible. Saves a strlen call.
16 years ago
Rémi Denis-Courmont
7e4d50ac42
Remove pl_Release, and rename pl_Hold back to pl_Get
pl_Hold() assumed the playlist was already created.
pl_Release() does not solve any problem. Playlist synchronization is
done with the playlist lock, while playlist deletion must anyway be done
after all interfaces, services and other threads are joined.
16 years ago
Rémi Denis-Courmont
f7b25b3fc7
LUA: vlc_object_find does not work for decoders and generic objects
16 years ago
Rémi Denis-Courmont
c2f8a645c8
Remove VLC_OBJECT_ENCODER
17 years ago
Rémi Denis-Courmont
ecd8f48066
Privatize packetize and interface object types
17 years ago
Rémi Denis-Courmont
6cf6df7c3f
Remove VLC_OBJECT_OSDMENU
17 years ago
Rémi Denis-Courmont
895bdba5f0
Remove practically unused interface type from scripting
17 years ago
Rémi Denis-Courmont
d699c5c3f6
Remove VLC_OBJECT_LIBVLC
18 years ago
Rémi Denis-Courmont
8d3e95ab7d
Remove VLC_OBJECT_OPENGL
18 years ago
Rémi Denis-Courmont
a74e2c4c7d
Remove VLC_OBJECT_MODULE
18 years ago
Rémi Denis-Courmont
bbb45caaca
Remove VLC_OBJECT_ANNOUNCE
18 years ago
Ilkka Ollakka
719f12a679
add vlc_object_lock/unlock to playlist-handling, fixes locking_assert for me
in lua-http interface, but if someone could double check it would be nice.
18 years ago
Rémi Denis-Courmont
c2c6729b7a
VLC_OBJECT_FILTER: remove
18 years ago
Rémi Denis-Courmont
2adfbf0c7d
VLC_OBJECT_DIALOGS: remove
18 years ago
Rémi Denis-Courmont
6c790747f3
Remove VLC_OBJECT_INTERACTION
18 years ago
Rémi Denis-Courmont
a123885710
Remove VLC_OBJECT_HTTPD_HOST
18 years ago