[vlc-devel] [PATCH] LuaSD: return the SD description from a function

Jean-Philippe André jpeg at videolan.org
Fri Feb 19 16:25:29 CET 2010


Friday 19 February 2010, 00:50:50,
Fabio Ritrovato wrote:
> Hi everyone,
> since we are now using compiled lua files, the current probing method
> won't work on them (using fopen() and reading a comment on the file ).
> This patch will run the script and use, if found, a description()
> function that returns the description, so it'll work on both .lua and
> .luac files...
> I just wanted an opionion, if it's ok to be commited...

You should do something similar as what's done with extensions: a descriptor() 
function that returns an array with different values (author, longdesc, 
shortdesc...).

Also, I don't think you need to call luaopen_libs(L). This way the 
description() function can't do much except returning static data.

However I'm not sure atm how to store this information in order to be able to 
display it in the GUI. For Qt, we would like to be able to have the same 
information tab for LuaSD as we have for Lua Extensions.

Best regards,

-- 
Jean-Philippe André (jpeg)



More information about the vlc-devel mailing list