summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJon Nermut <jon.nermut@asdeqlabs.com>2018-01-18 20:38:00 +1100
committerjan iversen <jani@libreoffice.org>2018-01-18 11:51:48 +0100
commit0c6cfea81e99a815c35b1a0e908a29bc6dc424f1 (patch)
tree1e67f4db10f9f5584e3a28064e1b567a2655d0a6 /desktop
parentbccb5c54cdcaaea09ee8a3929c7bcc4b94972c11 (diff)
iOS: add a temporarily exposed function that calls CallbackFlushHandler::Invoke in order to manually flush the callback queue. To be reverted once the callback problem is solved.
Change-Id: I95273b8a01eec62f639edd6767f69e02a294d8aa Reviewed-on: https://gerrit.libreoffice.org/48101 Reviewed-by: jan iversen <jani@libreoffice.org> Tested-by: jan iversen <jani@libreoffice.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 5688dab671f6..db8a5c5142c9 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3802,4 +3802,22 @@ static void lo_destroy(LibreOfficeKit* pThis)
}
+#ifdef IOS
+extern "C"
+{
+__attribute__((visibility("default")))
+{
+ SolarMutexGuard aGuard;
+ LibLODocument_Impl* pDocument = static_cast<LibLODocument_Impl*>(pThis);
+
+ int nOrigViewId = doc_getView(pThis);
+
+ if (nOrigViewId >= 0 && pDocument->mpCallbackFlushHandlers[nOrigViewId])
+ {
+ pDocument->mpCallbackFlushHandlers[nOrigViewId]->Invoke();
+ }
+}
+}
+#endif
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */