summaryrefslogtreecommitdiff
path: root/vcl/inc/salinst.hxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2021-10-02 12:50:05 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2022-01-19 17:06:48 +0100
commit93133585b5b52e38defc3162eeb1e7704dceafcb (patch)
tree90c2d12900a4bf5ad993de3fe7ae4cef0d95976d /vcl/inc/salinst.hxx
parent04a1d47e00f38a689ad84cbb86ba4cfb4692bb0d (diff)
WASM optionally run any app via system loop
Allows LO to run via system event loop instead of having an own one and processing system events as needed. Needed for WASM, so the browser isn't blocked, as there is no way to run the browser mainloop from WASM. Generally an alternative to running LO in a WebWorker and communicating to some frontend. Change-Id: I24955638827f3b8c04240845ffc781cd28f2aa29 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128602 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/salinst.hxx')
-rw-r--r--vcl/inc/salinst.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx
index 9dcee57bc2e6..90367c06bcc9 100644
--- a/vcl/inc/salinst.hxx
+++ b/vcl/inc/salinst.hxx
@@ -214,6 +214,8 @@ public:
// Note: we cannot make this a global variable, because it might be initialised BEFORE the putenv() call in cppunittester.
static bool IsRunningUnitTest() { return getenv("LO_TESTNAME") != nullptr; }
+
+ virtual bool DoExecute(int & /* nExitCode */) { return false; }
};
// called from SVMain