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
0b3b1edf14
variables: use table of vlc_value_t for VLC_VAR_GETCHOICES
This simplifies the notation. No function differences.
8 years ago
Rémi Denis-Courmont
7048874668
variables: inline var_FreeList() in simple loops
This works like config choices.
8 years ago
Rémi Denis-Courmont
5e50399a45
variables: add count parameter for VLC_VAR_GETCHOICES
8 years ago
Rémi Denis-Courmont
34925c7cb5
variables: use char *** for VLC_VAR_GETCHOICES texts
8 years ago
Rémi Denis-Courmont
63ce436225
variables: pass vlc_list_t directly with VLC_VAR_GETCHOICES
8 years ago
Rémi Denis-Courmont
880d0f652e
config_GetType(): remove unused parameter
9 years ago
Filip Roséen
73023dd157
lua/libs: variables: remove luaL_checklightuserdata (unused)
The last usage of this function was removed by fe5df3d in March 2012.
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
9 years ago
Pierre Ynard
27a081c234
lua: work around 32-bit integers limitation in vlc.var
Integer object variables use 64 bits. If lua integers are limited to 32
bits, use floats when necessary.
Ref #17285
10 years ago
Rémi Denis-Courmont
a6fd99e4e8
lua: fix memory leak when getting/inherting string variable
10 years ago
Rémi Denis-Courmont
c08c1e74d6
lua: remove constant parameter
10 years ago
Rémi Denis-Courmont
0fa357b2c0
lua: remove bogus down-cast (refs #17285 )
10 years ago
Rémi Denis-Courmont
c240692f0b
Common structure for VLC common object members, document
10 years ago
Ludovic Fauvet
2468da50f6
lua: replace deprecated functions
10 years ago
Rémi Denis-Courmont
2850821ad7
variables: voidify var_TriggerCallback()
The function can only fail if the named variable does not exist. The
only case where the error was actually checked was after another check
that the variable exists (Old RC).
11 years ago
Rémi Denis-Courmont
e1be96f232
Remove time variable type
The time type had become effectively identical to the integer type when
the integer type got extended to 64-bits.
11 years ago
Rémi Denis-Courmont
32486e651c
variables: remove VLC_VAR_GETLIST (same as VLC_VAR_GETCHOICES)
12 years ago
Rémi Denis-Courmont
b893d33da2
variables: store a single type per list
All entries in a single list always have the same type anyway.
12 years ago
Rémi Denis-Courmont
12d87f6a90
Lua: remove var.command
(not to be confused with var.libvlc_command and var.vlm_command)
13 years ago
Rémi Denis-Courmont
fe5df3d5b1
lua: remove add_callback and del_callback
add_callback could not work correctly with the (lack of) Lua threading
support. Fortunately, it was not in use.
del_callback depends on add_callback.
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
Pierre Ynard
ad964b11c1
lua: expose var_Inherit()
Similar functionality wasn't quite available by combining
vlc.var.create() and vlc.var.get()
15 years ago
Rémi Denis-Courmont
e3133936d6
Remove VLC_VAR_MUTEX class
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
15 years ago
Rafaël Carré
e292947855
fix vlclua_var_toggle_or_set
argument is a string ("on" or "off") not a bool
15 years ago
Rémi Duraffort
17bb975a23
lua: remove leading '__' in function name
15 years ago
Rémi Duraffort
08cc5fd694
Remove obvious statements.
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
Rémi Duraffort
11a8970497
lua_variables: luaL_optstring returned pointer is valid as long as the value stay on the lua stack (also avoid an strdup).
16 years ago
Rémi Duraffort
8a01a85330
lua_variables: the pointers returned by luaL_checkstring might be invalid when the value is poped from the lua stack.
16 years ago
Rémi Duraffort
0777f8120a
lua_variables: cosmetics. (no functionnal change).
16 years ago
Rémi Duraffort
efa1666ad3
lua_variables: allow the creation of a void variable.
16 years ago
Rémi Duraffort
8f5a86b390
lua_variables: add the possibility to attach a callback to a void variable.
16 years ago
Rémi Duraffort
b43a83e5fe
lua_variables: call only one time var_Type and corretly check the variable class.
16 years ago
Rémi Duraffort
30dd89c324
lua: remove dummy storage.
16 years ago
Rémi Duraffort
89e6bf1e9e
lua: implement var_ToggleBool and var_CountChoices.
16 years ago
Rémi Duraffort
a50d13ab0c
lua: use var_ToggleBool.
16 years ago
Rémi Duraffort
7046783c69
lua_variables: implement var_IncInteger and var_DecInteger
16 years ago
Rémi Duraffort
498262cef5
lua: remove "bla ? true : false"
16 years ago
Rémi Denis-Courmont
c38f2e5f94
Fix compilation
16 years ago
Rémi Denis-Courmont
f90eeab1ee
Remove VLC_VAR_LIST variable type
16 years ago
Pierre Ynard
8e6a4513d4
Spelling
16 years ago
Antoine Cellerier
f782f86eb4
Use pushliteral instead of pushstring where possible. Saves a strlen call.
16 years ago
Rémi Duraffort
1e724a9b7f
lua_libs: add a function to trigger callbacks.
17 years ago
Jean-Philippe André
9c1cb680d5
Lua: check variable type before adding a callback
17 years ago
Rafaël Carré
431798eb70
lua: add parenthesis as suggested by a gcc warning
17 years ago
Rémi Duraffort
9b5404a666
Use VLC_VAR_CLASS when applicable.
17 years ago
Rémi Duraffort
adf4fbbf60
Create a function to free the memory allocated when calling
var_Change(VLC_VAR_GETCHOICES). The memory was freed by a call to
var_Change(VLC_VAR_FREELIST). That's not a good idea as we were doing a lookup
just to free some memory.
17 years ago
Antoine Cellerier
8bf00f1beb
Implement "@name var val" style commands in rc.lua (and other misc changes)
17 years ago
Antoine Cellerier
ba2e3c57df
Add new functions to Lua API.
Add misc.mwait(), var.create() and strings.encode_uri_component()
functions to VLC's Lua API.
18 years ago