Mercurial > hg > orthanc-stone
diff Platforms/Wasm/Defaults.h @ 307:be2660b6e40a am-callable-and-promise
wip: commands + status update
author | am@osimis.io |
---|---|
date | Tue, 25 Sep 2018 15:14:53 +0200 |
parents | 8c8da145fefa |
children | 6cc3ce74dc05 |
line wrap: on
line diff
--- a/Platforms/Wasm/Defaults.h Tue Sep 18 18:20:10 2018 +0200 +++ b/Platforms/Wasm/Defaults.h Tue Sep 25 15:14:53 2018 +0200 @@ -7,6 +7,7 @@ #include <Framework/Widgets/LayerWidget.h> #include <Framework/Widgets/LayoutWidget.h> #include <Applications/IStoneApplication.h> +#include <Platforms/Wasm/WasmPlatformApplicationAdapter.h> typedef OrthancStone::WidgetViewport* ViewportHandle; // the objects exchanged between JS and C++ @@ -27,7 +28,9 @@ } #endif +// these methods must be implemented in the custom app "mainWasm.cpp" extern OrthancStone::IStoneApplication* CreateUserApplication(OrthancStone::MessageBroker& broker); +extern OrthancStone::WasmPlatformApplicationAdapter* CreateWasmApplicationAdapter(OrthancStone::MessageBroker& broker, OrthancStone::IStoneApplication* application); namespace OrthancStone {