2 * Copyright (C) 2016-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.
11 #include "threads/CriticalSection.h"
23 using AddonPtr
= std::shared_ptr
<IAddon
>;
24 using VECADDONS
= std::vector
<AddonPtr
>;
28 class CBinaryAddonCache
31 virtual ~CBinaryAddonCache();
34 void GetAddons(VECADDONS
& addons
, AddonType type
);
35 void GetDisabledAddons(VECADDONS
& addons
, AddonType type
);
36 void GetInstalledAddons(VECADDONS
& addons
, AddonType type
);
37 AddonPtr
GetAddonInstance(const std::string
& strId
, AddonType type
);
41 void OnEvent(const AddonEvent
& event
);
43 CCriticalSection m_critSection
;
44 std::multimap
<AddonType
, VECADDONS
> m_addons
;