Mercurial > hg > orthanc-stone
diff Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js @ 498:6d62fc8a6988 bgo-commands-codegen
Web demonstrator for codegen ongoing work
author | bgo-osimis |
---|---|
date | Sun, 24 Feb 2019 13:23:14 +0100 |
parents | 8b6ceae45ba0 |
children | baa9e1e932db |
line wrap: on
line diff
--- a/Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js Sun Feb 24 10:11:38 2019 +0100 +++ b/Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js Sun Feb 24 13:23:14 2019 +0100 @@ -3,9 +3,12 @@ mergeInto(LibraryManager.library, { // each time the Application updates its status, it may signal it through this method. i.e, to change the status of a button in the web interface // It needs to be put in this file so that the emscripten SDK linker knows where to find it. - UpdateApplicationStatusFromCpp: function(statusUpdateMessage) { + SendFreeTextFromCppJS: function(statusUpdateMessage) { var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); - UpdateWebApplication(statusUpdateMessage_); + SendFreeTextFromCpp(statusUpdateMessage_); + }, + SendMessageFromCppJS: function(statusUpdateMessage) { + var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); + SendMessageFromCpp(statusUpdateMessage_); } }); - \ No newline at end of file