bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / osl / detail / component-mapping.h
blob4d4264180476d0193eea08460409b15197d66e01
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H
11 #define INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H
13 #ifdef DISABLE_DYNLOADING
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
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.
27 typedef struct {
28 const char *name;
29 void * (*component_getFactory_function)(const char *, void *, void *);
30 } lib_to_factory_mapping;
32 typedef struct {
33 const char *name;
34 void * (*constructor_function)(void *, 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);
40 #ifdef __cplusplus
42 #endif
44 #endif /* DISABLE_DYNLOADING */
46 #endif // INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */