Skip to content

Commit

Permalink
Merge pull request #21 from AlwinEsch/Nexus-change
Browse files Browse the repository at this point in the history
[Nexus] API related update
  • Loading branch information
AlwinEsch authored Jan 1, 2022
2 parents 9a46dcd + ba6f828 commit ccfa0bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion peripheral.xarcade/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="peripheral.xarcade"
version="20.0.1"
version="20.1.0"
name="X-Arcade Tankstick Driver"
provider-name="Team Kodi">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
9 changes: 2 additions & 7 deletions src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 2 additions & 3 deletions src/addon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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<std::shared_ptr<kodi::addon::Peripheral>>& scan_results) override;
Expand Down

0 comments on commit ccfa0bd

Please sign in to comment.