ios/source/LibreOfficeKit.c |   11 ++++++++---
 ios/source/LibreOfficeKit.h |    2 +-
 2 files changed, 9 insertions(+), 4 deletions(-)

New commits:
commit da745e2f1440592bbf22edc00b29aac93e5ff7d4
Author: jan Iversen <j...@libreoffice.org>
Date:   Mon Jan 8 20:03:44 2018 +0100

    iOS, add bridge function to expose kit pointer.
    
    Change-Id: I534dc7e418c342d50762fbb69ae442a75610b278

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
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to