summaryrefslogtreecommitdiff
path: root/ios/source
diff options
context:
space:
mode:
authorjan Iversen <jani@libreoffice.org>2018-01-08 20:03:44 +0100
committerjan Iversen <jani@libreoffice.org>2018-01-08 20:04:53 +0100
commitda745e2f1440592bbf22edc00b29aac93e5ff7d4 (patch)
tree3e3a647cf4c7a0684e931efe51748bfe246a8dd9 /ios/source
parente7980e60ee60d9707780d0eee3841850351febf6 (diff)
iOS, add bridge function to expose kit pointer.
Change-Id: I534dc7e418c342d50762fbb69ae442a75610b278
Diffstat (limited to 'ios/source')
-rw-r--r--ios/source/LibreOfficeKit.c11
-rw-r--r--ios/source/LibreOfficeKit.h2
2 files changed, 9 insertions, 4 deletions
diff --git a/ios/source/LibreOfficeKit.c b/ios/source/LibreOfficeKit.c
index 841c19ceff26..4ed3c919bafb 100644
--- a/ios/source/LibreOfficeKit.c
+++ b/ios/source/LibreOfficeKit.c
@@ -19,11 +19,11 @@
// Force reference to libreofficekit_hook
-extern __attribute__((used)) void *libreofficekit_hook(const char *);
-static __attribute__((used)) void *(*foop)(const char *) = libreofficekit_hook;
+extern __attribute__((used)) void *libreofficekit_hook_2(const char *);
+static __attribute__((used)) void *(*foop)(const char *) = libreofficekit_hook_2;
// pointers to our instance
-LibreOfficeKit* kit;
+static LibreOfficeKit* kit;
static LibreOfficeKitDocument* document;
@@ -119,3 +119,8 @@ int BridgeLOkit_LeaveHipernate()
return 0;
}
+__attribute__((visibility("default")))
+LibreOfficeKit* BridgeLOkit_getLOK()
+{
+ return kit;
+}
diff --git a/ios/source/LibreOfficeKit.h b/ios/source/LibreOfficeKit.h
index 0f5ca6edc95f..c4624371b347 100644
--- a/ios/source/LibreOfficeKit.h
+++ b/ios/source/LibreOfficeKit.h
@@ -29,6 +29,6 @@ int BridgeLOkit_LeaveHipernate(void);
#include <LibreOfficeKit/LibreOfficeKit.h>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
-extern LibreOfficeKit* kit;
+LibreOfficeKit* BridgeLOkit_getLOK(void);
#endif