[vlc-devel] Lua extension and vlc.misc
remi at remlab.net
Tue Feb 28 20:07:40 CET 2012
Le mardi 28 février 2012 20:13:09 Jean-Baptiste Kempf, vous avez écrit :
> Since 52d4b4bb1c, vlc.misc.* are not available outside of lua
> interfaces, notably for extensions and sds.
> It seems indeed that vlc.misc was over-exposing things, like should_die
> or quit.
> However, some things were useful, like version() or copyright() or
> Therefore, I suggest to allow back some of those things for other lua
> modules, and keep the other ones only for intf. I will do the work of
> splitting, but I would need feedback.
> Here is the list of things:
> Those seems safe to explose:
All mostly useless and bad ideas, c.f. other post.
Same as for the MacOS UI: this should not be exposed.
> Those, I do not know:
Useless in an extension. The only reported use was to reimplement msleep()
with mdate() and mwait(), which was stupid.
Mostly harmless but mostly only used for shitty polling code
-> bad idea.
Will probably crash.
Same as mwait() -> bad idea.
> Those seems wrong to expose outside of intf:
Not extension business -> bad idea.
My opinion is that none of these should be exposed outside interfaces.
More information about the vlc-devel