[vlc-devel] [PATCH] Include more information in both browse.xml version

Vicente Jiménez googuy at gmail.com
Wed Jul 2 01:46:43 CEST 2008


I've just modified my previous patch for the file browse.xml in the requests
of the legacy HTTP interface including the function to escape html special
characters.

When you tell me about the lua interface I've just tried to make it work in
Windows nightly build of 30 June. After that just tried a nightly built from
May for MacOS X. And the lua interface doesn't complaint about don't finding
the http script.

After a bit of learning Lua and reading about. I just realized that the
information returned about the directory element of both interfaces are
differents

The legacy C code HTTP interface returns:
type, size, basename (as name), name (as path), date and ext.

but the lua's HTTP interface returns:
type, size, path, name, access_time, creation_time, modification_time, uid,
gid, mode.

basically name, path and the table returned by vlc.net.stat(). For that
reason I'm not shure if the table returned is not architecture dependant.
For example the access_time is normally deactivated for performance issues.
I've adapted the code to return whatever the vlc.net.stat function returns
as keys values.

Where do I found more information about the vlc extension to the lua
language? I've noticed for example that the modules changes from vlc.fd to
vlc.net from May to June, so I supose that this could be not well documented
as this is still work in progress. I can read code if that is the only place
to find information.

I just finished a few files for the legacy HTTP interface to work with JSON
and JSONP, and I want to do the same for the lua's HTTP interface.

vice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080702/1dd53a3d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-browse.xml-from-lua-s-HTTP-interface-include-all-key.patch
Type: application/octet-stream
Size: 1024 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080702/1dd53a3d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Added-extension-information-to-browse.xml.patch
Type: application/octet-stream
Size: 1460 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080702/1dd53a3d/attachment-0001.obj>


More information about the vlc-devel mailing list