diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/AudioEncoder.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/AudioEncoder.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/AudioEncoder.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/AudioEncoder.h index b98884e..36257e1 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/AudioEncoder.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/AudioEncoder.h | |||
| @@ -55,7 +55,7 @@ namespace kodi | |||
| 55 | namespace addon | 55 | namespace addon |
| 56 | { | 56 | { |
| 57 | 57 | ||
| 58 | class CInstanceAudioEncoder : public IAddonInstance | 58 | class ATTRIBUTE_HIDDEN CInstanceAudioEncoder : public IAddonInstance |
| 59 | { | 59 | { |
| 60 | public: | 60 | public: |
| 61 | //========================================================================== | 61 | //========================================================================== |
| @@ -64,8 +64,14 @@ namespace addon | |||
| 64 | /// @param[in] instance The from Kodi given instance given be | 64 | /// @param[in] instance The from Kodi given instance given be |
| 65 | /// add-on CreateInstance call with instance | 65 | /// add-on CreateInstance call with instance |
| 66 | /// id ADDON_INSTANCE_AUDIOENCODER. | 66 | /// id ADDON_INSTANCE_AUDIOENCODER. |
| 67 | explicit CInstanceAudioEncoder(KODI_HANDLE instance) | 67 | /// @param[in] kodiVersion [opt] Version used in Kodi for this instance, to |
| 68 | : IAddonInstance(ADDON_INSTANCE_AUDIOENCODER) | 68 | /// allow compatibility to older Kodi versions. |
| 69 | /// @note Recommended to set. | ||
| 70 | /// | ||
| 71 | explicit CInstanceAudioEncoder(KODI_HANDLE instance, const std::string& kodiVersion = "") | ||
| 72 | : IAddonInstance(ADDON_INSTANCE_AUDIOENCODER, | ||
| 73 | !kodiVersion.empty() ? kodiVersion | ||
| 74 | : GetKodiTypeVersion(ADDON_INSTANCE_AUDIOENCODER)) | ||
| 69 | { | 75 | { |
| 70 | if (CAddonBase::m_interface->globalSingleInstance != nullptr) | 76 | if (CAddonBase::m_interface->globalSingleInstance != nullptr) |
| 71 | throw std::logic_error("kodi::addon::CInstanceAudioEncoder: Creation of multiple together with single instance way is not allowed!"); | 77 | throw std::logic_error("kodi::addon::CInstanceAudioEncoder: Creation of multiple together with single instance way is not allowed!"); |
