2012-09-24 10:38:43 +03:00
|
|
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
2013-04-19 21:10:42 +01:00
|
|
|
* This file is part of the LibreOffice project.
|
2012-09-24 10:38:43 +03:00
|
|
|
*
|
2013-04-19 21:10:42 +01:00
|
|
|
* 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/.
|
2012-09-24 10:38:43 +03:00
|
|
|
*/
|
|
|
|
|
2013-10-23 19:17:28 +02:00
|
|
|
#ifndef INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H
|
|
|
|
#define INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H
|
2012-09-24 10:38:43 +03:00
|
|
|
|
|
|
|
#ifdef DISABLE_DYNLOADING
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* On iOS and perhaps Android static linking of the LO code into one
|
|
|
|
* executable (on Android, into one shared library) is used. In order to get
|
|
|
|
* the needed UNO coponent linked in, the "main" code for an app needs to
|
|
|
|
* implement the lo_get_libmap() function to map UNO component library names
|
|
|
|
* as produced in a build for iOS (like configmgr.uno.a or libsclo.a) to the
|
|
|
|
* corresponding component_getFactory functions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct {
|
2013-12-16 17:26:34 +01:00
|
|
|
const char *name;
|
2012-09-24 10:38:43 +03:00
|
|
|
void * (*component_getFactory_function)(const char *, void *, void *);
|
2013-12-19 08:48:56 +01:00
|
|
|
} lib_to_factory_mapping;
|
2012-09-24 10:38:43 +03:00
|
|
|
|
2013-12-19 08:48:56 +01:00
|
|
|
typedef struct {
|
|
|
|
const char *name;
|
|
|
|
void * (*constructor_function)(void *, void *);
|
|
|
|
} lib_to_constructor_mapping;
|
|
|
|
|
|
|
|
const lib_to_factory_mapping *lo_get_factory_map(void);
|
|
|
|
const lib_to_constructor_mapping *lo_get_constructor_map(void);
|
2012-09-24 10:38:43 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* DISABLE_DYNLOADING */
|
|
|
|
|
2013-10-23 19:17:28 +02:00
|
|
|
#endif // INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H
|
2012-09-24 10:38:43 +03:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|