[vlc-devel] Lua extension and vlc.misc

Kaarlo Räihä kaarlo.raiha at gmail.com
Tue Feb 28 19:31:13 CET 2012


28. helmikuuta 2012 20.13 Jean-Baptiste Kempf <jb at videolan.org> kirjoitti:

> Hello,
>
> 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
> cachedir().
>
> 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:
> "version"
> "copyright"
> "license"
>
> "datadir"
> "userdatadir"
> "homedir"
> "configdir"
> "cachedir"
> "datadir_list"
>

Do these contain full paths? (e.g. /home/myname or c:\users\peter.jackson)
Because some people might complain about privacy violations, like they did
with automatic album art downloads.

Best solution for LUA would be permission based model, but I don't know if
anyone wants code that.


>
> "action_id"
>
> Those, I do not know:
> "mdate"
> "mwait"
>
> "lock_and_wait"
> "timer"
>
> Those seems wrong to expose outside of intf:
>
> "should_die"
> "quit"
>
>
> Opinions?
>
> Best regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120228/51b66c82/attachment.html>


More information about the vlc-devel mailing list