From 37d9ac544a49678707c67b0fafcf06463c468194 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Thu, 23 Dec 2021 10:59:57 +0100 Subject: [PATCH 1/2] API related update --- src/addon.cpp | 9 ++------- src/addon.h | 5 ++--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/addon.cpp b/src/addon.cpp index 8cb1a863..8d9547b9 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -28,17 +28,12 @@ CPeripheralXArcade::CPeripheralXArcade() : ADDON_STATUS CPeripheralXArcade::Create() { - return GetStatus(); + return ADDON_STATUS_OK; } CPeripheralXArcade::~CPeripheralXArcade() = default; -ADDON_STATUS CPeripheralXArcade::GetStatus() -{ - return ADDON_STATUS_OK; -} - -ADDON_STATUS CPeripheralXArcade::SetSetting(const std::string& settingName, const kodi::CSettingValue& settingValue) +ADDON_STATUS CPeripheralXArcade::SetSetting(const std::string& settingName, const kodi::addon::CSettingValue& settingValue) { return ADDON_STATUS_OK; } diff --git a/src/addon.h b/src/addon.h index eb6bc10f..0c9b148a 100644 --- a/src/addon.h +++ b/src/addon.h @@ -15,7 +15,7 @@ namespace XARCADE class CXArcadeScanner; } -class ATTRIBUTE_HIDDEN CPeripheralXArcade +class ATTR_DLL_LOCAL CPeripheralXArcade : public kodi::addon::CAddonBase, public kodi::addon::CInstancePeripheral { @@ -24,8 +24,7 @@ class ATTRIBUTE_HIDDEN CPeripheralXArcade ~CPeripheralXArcade() override; ADDON_STATUS Create() override; - ADDON_STATUS GetStatus() override; - ADDON_STATUS SetSetting(const std::string& settingName, const kodi::CSettingValue& settingValue) override; + ADDON_STATUS SetSetting(const std::string& settingName, const kodi::addon::CSettingValue& settingValue) override; void GetCapabilities(kodi::addon::PeripheralCapabilities& capabilities) override; PERIPHERAL_ERROR PerformDeviceScan(std::vector>& scan_results) override; From ba6f8281fdd6090f16a731530d14e0ac654f2e2b Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Thu, 23 Dec 2021 11:16:27 +0100 Subject: [PATCH 2/2] increase version to 20.1.0 --- peripheral.xarcade/addon.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripheral.xarcade/addon.xml.in b/peripheral.xarcade/addon.xml.in index b1249bc8..16fd51f7 100644 --- a/peripheral.xarcade/addon.xml.in +++ b/peripheral.xarcade/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@