summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-06-09 11:33:25 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-06-11 13:44:55 +0100
commit9a1b2970ed83b7666957ca6d0394a75b5d0717fa (patch)
tree53c056fc2641b493f7d2fe7e93bc84b65e4c75b5 /desktop/source
parentbb761be472ea9a590837dc6c1ca295387ac4c0b7 (diff)
Move liblibreoffice into LibreOfficeKit.
Change-Id: Ib2754a77be470faaa6f9b27644a1d8dd082ed2b8
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx2
-rw-r--r--desktop/source/lib/shim.c67
2 files changed, 1 insertions, 68 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 0fcbc5f464b9..bbcac7fef613 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -13,7 +13,7 @@
#include <string.h>
#include <stdlib.h>
-#include "liblibreoffice.h"
+#include <LibreOfficeKit/LibreOfficeKit.h>
#include <tools/errinf.hxx>
#include <osl/file.hxx>
diff --git a/desktop/source/lib/shim.c b/desktop/source/lib/shim.c
deleted file mode 100644
index 7115c6e57299..000000000000
--- a/desktop/source/lib/shim.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#ifdef LINUX
-
-#include <stdio.h>
-#include <string.h>
-
-#include <osl/module.h>
-#include <sal/types.h>
-#include <liblibreoffice.h>
-
-#include <dlfcn.h>
-#ifdef AIX
-# include <sys/ldr.h>
-#endif
-
-#define TARGET_LIB SAL_MODULENAME( "sofficeapp" )
-
-typedef LibreOffice *(HookFunction)(void);
-
-SAL_DLLPUBLIC_EXPORT LibreOffice *lo_init( const char *install_path )
-{
- char *imp_lib;
- void *dlhandle;
- HookFunction *pSym;
-
- if( !install_path )
- return NULL;
- if( !( imp_lib = (char *) malloc( strlen (install_path) + sizeof( TARGET_LIB ) + 2 ) ) )
- {
- fprintf( stderr, "failed to open library : not enough memory\n");
- return NULL;
- }
-
- strcpy( imp_lib, install_path );
- strcat( imp_lib, "/" );
- strcat( imp_lib, TARGET_LIB );
-
- if( !( dlhandle = dlopen( imp_lib, RTLD_LAZY ) ) )
- {
- fprintf( stderr, "failed to open library '%s'\n", imp_lib );
- free( imp_lib );
- return NULL;
- }
-
- pSym = (HookFunction *) dlsym( dlhandle, "liblibreoffice_hook" );
- if( !pSym ) {
- fprintf( stderr, "failed to find hook in library '%s'\n", imp_lib );
- dlclose( dlhandle );
- free( imp_lib );
- return NULL;
- }
-
- free( imp_lib );
- return pSym();
-}
-
-#endif // not LINUX => port me !
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */