1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H
11 #define INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H
13 #ifdef DISABLE_DYNLOADING
19 /* On iOS and perhaps Android static linking of the LO code into one
20 * executable (on Android, into one shared library) is used. In order to get
21 * the needed UNO component linked in, the "main" code for an app needs to
22 * implement the lo_get_libmap() function to map UNO component library names
23 * as produced in a build for iOS (like configmgr.uno.a or libsclo.a) to the
24 * corresponding component_getFactory functions.
29 void * (*component_getFactory_function
)(const char *, void *, void *);
30 } lib_to_factory_mapping
;
34 void (*constructor_function
)(void);
35 } lib_to_constructor_mapping
;
37 const lib_to_factory_mapping
*lo_get_factory_map(void);
38 const lib_to_constructor_mapping
*lo_get_constructor_map(void);
44 #endif /* DISABLE_DYNLOADING */
46 #endif // INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */