ZaStoGram_desktop/Telegram/SourceFiles/tgw/tgw_resources.h
John Preston 059267b720 Run .tgw widgets in the shared widget sandbox
Task: 2026/10/13/run-tgw-widgets-in-the-shared-sandbox
2026-11-05 17:12:53 +04:00

21 lines
535 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace twidget {
class SandboxResources;
} // namespace twidget
namespace Tgw {
void PrepareResources(
Fn<void(std::shared_ptr<twidget::SandboxResources>)> done);
[[nodiscard]] bool StopResources(Fn<void()> stopped);
[[nodiscard]] bool ResourcesFailed();
} // namespace Tgw