"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/network/httprequesthandler/HTTPWebinterfaceAddonsHandler.cpp" between
xbmc-18.7.1-Leia.tar.gz and xbmc-18.8-Leia.tar.gz

About: XBMC is a software media player and entertainment hub for digital media that plays almost all popular audio and video formats around (new name "Kodi").

HTTPWebinterfaceAddonsHandler.cpp  (xbmc-18.7.1-Leia):HTTPWebinterfaceAddonsHandler.cpp  (xbmc-18.8-Leia)
skipping to change at line 21 skipping to change at line 21
#include "addons/AddonManager.h" #include "addons/AddonManager.h"
#include "network/WebServer.h" #include "network/WebServer.h"
#define ADDON_HEADER "<html><head><title>Add-on List</title></head><body>\n <h1>Available web interfaces:</h1>\n<ul>\n" #define ADDON_HEADER "<html><head><title>Add-on List</title></head><body>\n <h1>Available web interfaces:</h1>\n<ul>\n"
bool CHTTPWebinterfaceAddonsHandler::CanHandleRequest(const HTTPRequest &request ) const bool CHTTPWebinterfaceAddonsHandler::CanHandleRequest(const HTTPRequest &request ) const
{ {
return (request.pathUrl.compare("/addons") == 0 || request.pathUrl.compare("/a ddons/") == 0); return (request.pathUrl.compare("/addons") == 0 || request.pathUrl.compare("/a ddons/") == 0);
} }
int CHTTPWebinterfaceAddonsHandler::HandleRequest() MHD_RESULT CHTTPWebinterfaceAddonsHandler::HandleRequest()
{ {
m_responseData = ADDON_HEADER; m_responseData = ADDON_HEADER;
ADDON::VECADDONS addons; ADDON::VECADDONS addons;
if (!CServiceBroker::GetAddonMgr().GetAddons(addons, ADDON::ADDON_WEB_INTERFAC E) || addons.empty()) if (!CServiceBroker::GetAddonMgr().GetAddons(addons, ADDON::ADDON_WEB_INTERFAC E) || addons.empty())
{ {
m_response.type = HTTPError; m_response.type = HTTPError;
m_response.status = MHD_HTTP_INTERNAL_SERVER_ERROR; m_response.status = MHD_HTTP_INTERNAL_SERVER_ERROR;
return MHD_YES; return MHD_YES;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)