[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / media / drm / CryptoSession.cpp
blob9e5e8888d7b07bb81b15acafcb12f2d16f45b06a
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #include "CryptoSession.h"
11 using namespace DRM;
13 std::vector<GET_CRYPTO_SESSION_INTERFACE_FN> CCryptoSession::s_registeredInterfaces;
15 void CCryptoSession::RegisterInterface(GET_CRYPTO_SESSION_INTERFACE_FN fn)
17 s_registeredInterfaces.push_back(fn);
20 CCryptoSession* CCryptoSession::GetCryptoSession(const std::string& UUID, const std::string& cipherAlgo, const std::string& macAlgo)
22 CCryptoSession* retVal = nullptr;
23 for (auto fn : s_registeredInterfaces)
24 if ((retVal = fn(UUID, cipherAlgo, macAlgo)))
25 break;
26 return retVal;