[vlc-devel] [PATCH] luahttp add .json equivalents for status.xml and playlist.xml

Rob rob at hobbyistsoftware.com
Tue Jun 28 22:17:25 CEST 2011


this does a couple of jobs

1) move the logic for processing commands from status.xml to a function in  
luahttp.lua (in /modules)
this means it can be shared with playlist.xml

2) move to a semi-clean separation of model & view with models in luahttp,  
and xml/json views just outputting the model data
-both status.xml and playlist.xml have to have some custom formatting of  
the output to maintain backwards compatibility, but it is fairly minor

3) adds .json views for status.json and playlist.json
-these are both direct output of the model data, so shouldn't need much  
maintenance

4) adds version=<vlc version> to status.xml model

5) adds apiversion1 to status.xml
-the idea is that we can increment this as the api is expanded and allow  
an easy way for clients to know which commands are available

6) reverts the playlist.xml output format to the schema in use before  
elminsters UI revamp. This will maintain backward compatibility, but will  
also require some rework from elminster to adapt (he is cool with this)

I'm looking for feedback and/or approval before I move on to other views.

Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-added-.json-equivalents-for-status.xml-and-playlist..patch
Type: application/octet-stream
Size: 20419 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110628/736c33ea/attachment.obj>


More information about the vlc-devel mailing list