[UPNP/JSONRPC] Allow usage of path that are inside sources + add source
authorTolriq <Tolriq@gmail.com>
Sat, 18 May 2013 13:25:38 +0000 (15:25 +0200)
committerTolriq <Tolriq@gmail.com>
Mon, 3 Jun 2013 20:20:22 +0000 (22:20 +0200)
commita2ac9970c8e7e525955d6151b9559e3154de1712
tree4c90ad1a207c03efd57c3f99725e40207cfbecdf
parent9bb2fa649e783a04205762269274f34f392c53dd
[UPNP/JSONRPC] Allow usage of path that are inside sources + add source
setting allowSharing

Continuation of 1220d8c4a9
Add a source flag allowsharing defaulting to true to allow or disallow
access to a source from UPNP/WebServer

The checks are now available as a function in FileUtils and common to UPNP and JSON
Also make the check correctly works in JSON as current implementation have flow allowing browsing any directory with Files.GetDirectory.
xbmc/MediaSource.cpp
xbmc/MediaSource.h
xbmc/interfaces/json-rpc/FileOperations.cpp
xbmc/network/httprequesthandler/HTTPVfsHandler.cpp
xbmc/network/upnp/UPnPServer.cpp
xbmc/settings/MediaSourceSettings.cpp
xbmc/utils/FileUtils.cpp
xbmc/utils/FileUtils.h