[vlc-commits] Add json capabilities to http requests

Rob Jonson git at videolan.org
Fri Jul 22 02:53:01 CEST 2011


vlc | branch: master | Rob Jonson <rob at hobbyistsoftware.com> | Thu Jul  7 13:02:42 2011 +0100| [18381e4a3b85cb7d100ad1b45786d4d46b65d2af] | committer: Jean-Baptiste Kempf

Add json capabilities to http requests

- refactor logic and model from status.xml and playlist.xml to prepare those to work as simple views driven by the model. This will allow the .json files to exist as models as well - so .json is also added as a mimetype
- refactor status.xml to use data from shared model in luahttp.lua
- added status.json - mimics functionality of status.xml

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18381e4a3b85cb7d100ad1b45786d4d46b65d2af
---

 NEWS                                    |    1 +
 share/Makefile.am                       |    3 +
 share/lua/http/requests/README.txt      |    3 +-
 share/lua/http/requests/status.json     |   40 ++++
 share/lua/http/requests/status.xml      |  128 +----------
 share/lua/intf/http.lua                 |    1 +
 share/lua/intf/modules/httprequests.lua |  373 +++++++++++++++++++++++++++++++
 7 files changed, 432 insertions(+), 117 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=18381e4a3b85cb7d100ad1b45786d4d46b65d2af


More information about the vlc-commits mailing list