diff options
Diffstat (limited to 'ugc/api.hpp')
-rw-r--r-- | ugc/api.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ugc/api.hpp b/ugc/api.hpp index b507ac1f95..9af3ef365a 100644 --- a/ugc/api.hpp +++ b/ugc/api.hpp @@ -19,12 +19,13 @@ class Api { public: using UGCCallback = platform::SafeCallback<void(UGC const & ugc, UGCUpdate const & update)>; + using UGCCallbackUnsafe = std::function<void(UGC const & ugc, UGCUpdate const & update)>; using UGCJsonToSendCallback = std::function<void(std::string && jsonStr)>; using OnResultCallback = platform::SafeCallback<void(Storage::SettingResult const result)>; explicit Api(Index const & index); - void GetUGC(FeatureID const & id, UGCCallback const & callback); + void GetUGC(FeatureID const & id, UGCCallbackUnsafe const & callback); void SetUGCUpdate(FeatureID const & id, UGCUpdate const & ugc, OnResultCallback const & callback = nullptr); void GetUGCToSend(UGCJsonToSendCallback const & callback); @@ -32,7 +33,7 @@ public: void SaveUGCOnDisk(); private: - void GetUGCImpl(FeatureID const & id, UGCCallback const & callback); + void GetUGCImpl(FeatureID const & id, UGCCallbackUnsafe const & callback); Storage::SettingResult SetUGCUpdateImpl(FeatureID const & id, UGCUpdate const & ugc); void GetUGCToSendImpl(UGCJsonToSendCallback const & callback); void SendingCompletedImpl(); |