Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/wasm-application-runner.ts @ 303:ed1a4302154f am-callable-and-promise
new messages in wasm too
author | am@osimis.io |
---|---|
date | Tue, 18 Sep 2018 18:17:26 +0200 |
parents | 3897f9f28cfa |
children | 8bdc6112bc2e |
comparison
equal
deleted
inserted
replaced
302:4a79193ffb58 | 303:ed1a4302154f |
---|---|
8 declare var StoneFrameworkModule : Stone.Framework; | 8 declare var StoneFrameworkModule : Stone.Framework; |
9 | 9 |
10 // global functions | 10 // global functions |
11 var WasmWebService_NotifyError: Function = null; | 11 var WasmWebService_NotifyError: Function = null; |
12 var WasmWebService_NotifySuccess: Function = null; | 12 var WasmWebService_NotifySuccess: Function = null; |
13 var WasmWebService_NewNotifyError: Function = null; | |
14 var WasmWebService_NewNotifySuccess: Function = null; | |
15 var WasmWebService_SetBaseUri: Function = null; | 13 var WasmWebService_SetBaseUri: Function = null; |
16 var NotifyUpdateContent: Function = null; | 14 var NotifyUpdateContent: Function = null; |
17 var SetStartupParameter: Function = null; | 15 var SetStartupParameter: Function = null; |
18 var CreateWasmApplication: Function = null; | 16 var CreateWasmApplication: Function = null; |
19 var CreateCppViewport: Function = null; | 17 var CreateCppViewport: Function = null; |
95 ReleaseCppViewport = StoneFrameworkModule.cwrap('ReleaseCppViewport', null, ['number']); | 93 ReleaseCppViewport = StoneFrameworkModule.cwrap('ReleaseCppViewport', null, ['number']); |
96 StartWasmApplication = StoneFrameworkModule.cwrap('StartWasmApplication', null, ['number']); | 94 StartWasmApplication = StoneFrameworkModule.cwrap('StartWasmApplication', null, ['number']); |
97 | 95 |
98 WasmWebService_NotifySuccess = StoneFrameworkModule.cwrap('WasmWebService_NotifySuccess', null, ['number', 'string', 'array', 'number', 'number']); | 96 WasmWebService_NotifySuccess = StoneFrameworkModule.cwrap('WasmWebService_NotifySuccess', null, ['number', 'string', 'array', 'number', 'number']); |
99 WasmWebService_NotifyError = StoneFrameworkModule.cwrap('WasmWebService_NotifyError', null, ['number', 'string', 'number']); | 97 WasmWebService_NotifyError = StoneFrameworkModule.cwrap('WasmWebService_NotifyError', null, ['number', 'string', 'number']); |
100 WasmWebService_NewNotifySuccess = StoneFrameworkModule.cwrap('WasmWebService_NewNotifySuccess', null, ['number', 'string', 'array', 'number', 'number']); | |
101 WasmWebService_NewNotifyError = StoneFrameworkModule.cwrap('WasmWebService_NewNotifyError', null, ['number', 'string', 'number']); | |
102 WasmWebService_SetBaseUri = StoneFrameworkModule.cwrap('WasmWebService_SetBaseUri', null, ['string']); | 98 WasmWebService_SetBaseUri = StoneFrameworkModule.cwrap('WasmWebService_SetBaseUri', null, ['string']); |
103 NotifyUpdateContent = StoneFrameworkModule.cwrap('NotifyUpdateContent', null, []); | 99 NotifyUpdateContent = StoneFrameworkModule.cwrap('NotifyUpdateContent', null, []); |
104 | 100 |
105 SendMessageToStoneApplication = StoneFrameworkModule.cwrap('SendMessageToStoneApplication', 'string', ['string']); | 101 SendMessageToStoneApplication = StoneFrameworkModule.cwrap('SendMessageToStoneApplication', 'string', ['string']); |
106 | 102 |