Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/wasm-application-runner.ts @ 299:3897f9f28cfa am-callable-and-promise
backup work in progress: updated messaging framework with ICallable
author | am@osimis.io |
---|---|
date | Fri, 14 Sep 2018 16:44:01 +0200 |
parents | 2038d76bf13f |
children | ed1a4302154f |
comparison
equal
deleted
inserted
replaced
298:f58bfb7bbcc9 | 299:3897f9f28cfa |
---|---|
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; | |
13 var WasmWebService_SetBaseUri: Function = null; | 15 var WasmWebService_SetBaseUri: Function = null; |
14 var NotifyUpdateContent: Function = null; | 16 var NotifyUpdateContent: Function = null; |
15 var SetStartupParameter: Function = null; | 17 var SetStartupParameter: Function = null; |
16 var CreateWasmApplication: Function = null; | 18 var CreateWasmApplication: Function = null; |
17 var CreateCppViewport: Function = null; | 19 var CreateCppViewport: Function = null; |
93 ReleaseCppViewport = StoneFrameworkModule.cwrap('ReleaseCppViewport', null, ['number']); | 95 ReleaseCppViewport = StoneFrameworkModule.cwrap('ReleaseCppViewport', null, ['number']); |
94 StartWasmApplication = StoneFrameworkModule.cwrap('StartWasmApplication', null, ['number']); | 96 StartWasmApplication = StoneFrameworkModule.cwrap('StartWasmApplication', null, ['number']); |
95 | 97 |
96 WasmWebService_NotifySuccess = StoneFrameworkModule.cwrap('WasmWebService_NotifySuccess', null, ['number', 'string', 'array', 'number', 'number']); | 98 WasmWebService_NotifySuccess = StoneFrameworkModule.cwrap('WasmWebService_NotifySuccess', null, ['number', 'string', 'array', 'number', 'number']); |
97 WasmWebService_NotifyError = StoneFrameworkModule.cwrap('WasmWebService_NotifyError', null, ['number', 'string', 'number']); | 99 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']); | |
98 WasmWebService_SetBaseUri = StoneFrameworkModule.cwrap('WasmWebService_SetBaseUri', null, ['string']); | 102 WasmWebService_SetBaseUri = StoneFrameworkModule.cwrap('WasmWebService_SetBaseUri', null, ['string']); |
99 NotifyUpdateContent = StoneFrameworkModule.cwrap('NotifyUpdateContent', null, []); | 103 NotifyUpdateContent = StoneFrameworkModule.cwrap('NotifyUpdateContent', null, []); |
100 | 104 |
101 SendMessageToStoneApplication = StoneFrameworkModule.cwrap('SendMessageToStoneApplication', 'string', ['string']); | 105 SendMessageToStoneApplication = StoneFrameworkModule.cwrap('SendMessageToStoneApplication', 'string', ['string']); |
102 | 106 |