diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-16 17:26:34 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-18 07:15:49 +0100 |
commit | d8bbae2fd6786c2647b7b59e54d9dabdd47603d7 (patch) | |
tree | d51d9683d59c320fe8ec6fe64b804927d674b70f /include/osl/detail | |
parent | e20f27f0a04a3c0c0ba38a2b78f5c2591e27bbc0 (diff) |
Get more --disable-dynamic-loading code out of shlib.cxx.
It's not terribly nice, but, hopefully, better.
The hope is that one day, lo_get_library_map will be no more.
In lo_get_implementation_map we can specify more precisely what to link
into the binary.
Change-Id: I99a1854fbae05be2f70302cc56bea88e522ec129
Diffstat (limited to 'include/osl/detail')
-rw-r--r-- | include/osl/detail/component-mapping.h | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/include/osl/detail/component-mapping.h b/include/osl/detail/component-mapping.h index 0ee0b512327b..9feae7000160 100644 --- a/include/osl/detail/component-mapping.h +++ b/include/osl/detail/component-mapping.h @@ -27,16 +27,53 @@ extern "C" { */ typedef struct { - const char *lib; + const char *name; void * (*component_getFactory_function)(const char *, void *, void *); } lib_to_component_mapping; -const lib_to_component_mapping *lo_get_libmap(void); +const lib_to_component_mapping *lo_get_library_map(void); +const lib_to_component_mapping *lo_get_implementation_map(void); #ifdef __cplusplus } #endif +#define NON_APP_SPECIFIC_COMPONENT_MAP \ + { "libintrospectionlo.a", introspection_component_getFactory }, \ + { "libreflectionlo.a", reflection_component_getFactory }, \ + { "libstocserviceslo.a", stocservices_component_getFactory }, \ + { "libcomphelper.a", comphelp_component_getFactory }, \ + { "libconfigmgrlo.a", configmgr_component_getFactory }, \ + { "libdeployment.a", deployment_component_getFactory }, \ + { "libfilterconfiglo.a", filterconfig1_component_getFactory }, \ + { "libfwklo.a", fwk_component_getFactory }, \ + { "libi18npoollo.a", i18npool_component_getFactory }, \ + { "liblocalebe1lo.a", localebe1_component_getFactory }, \ + { "libpackage2.a", package2_component_getFactory }, \ + { "libsfxlo.a", sfx_component_getFactory }, \ + { "libsvllo.a", svl_component_getFactory }, \ + { "libtklo.a", tk_component_getFactory }, \ + { "libucb1.a", ucb_component_getFactory }, \ + { "libucpexpand1lo.a", ucpexpand1_component_getFactory }, \ + { "libucpfile1.a", ucpfile_component_getFactory }, \ + { "libutllo.a", utl_component_getFactory }, \ + { "libvcllo.a", vcl_component_getFactory }, \ + { "libxstor.a", xstor_component_getFactory }, \ + +#define NON_APP_SPECIFIC_DIRECT_COMPONENT_MAP \ + { "com.sun.star.comp.extensions.xml.sax.ParserExpat", com_sun_star_comp_extensions_xml_sax_ParserExpat_component_getFactory }, \ + { "com.sun.star.comp.extensions.xml.sax.FastParser", com_sun_star_comp_extensions_xml_sax_FastParser_component_getFactory }, \ + { "com.sun.star.comp.stoc.DLLComponentLoader.component.getFactory", com_sun_star_comp_stoc_DLLComponentLoader_component_getFactory }, \ + { "com.sun.star.comp.stoc.ImplementationRegistration.component.getFactory", com_sun_star_comp_stoc_ImplementationRegistration_component_getFactory }, \ + { "com.sun.star.comp.stoc.NestedRegistry.component.getFactory", com_sun_star_comp_stoc_NestedRegistry_component_getFactory }, \ + { "com.sun.star.comp.stoc.ORegistryServiceManager.component.getFactory", com_sun_star_comp_stoc_ORegistryServiceManager_component_getFactory }, \ + { "com.sun.star.comp.stoc.OServiceManager.component.getFactory", com_sun_star_comp_stoc_OServiceManager_component_getFactory }, \ + { "com.sun.star.comp.stoc.OServiceManagerWrapper.component.getFactory", com_sun_star_comp_stoc_OServiceManagerWrapper_component_getFactory }, \ + { "com.sun.star.comp.stoc.SimpleRegistry.component.getFactory", com_sun_star_comp_stoc_SimpleRegistry_component_getFactory }, \ + { "com.sun.star.extensions.xml.sax.Writer", com_sun_star_extensions_xml_sax_Writer_component_getFactory }, \ + { "com.sun.star.security.comp.stoc.AccessController.component.getFactory", com_sun_star_security_comp_stoc_AccessController_component_getFactory }, \ + { "com.sun.star.security.comp.stoc.FilePolicy.component.getFactory", com_sun_star_security_comp_stoc_FilePolicy_component_getFactory }, \ + #endif /* DISABLE_DYNLOADING */ #endif // INCLUDED_OSL_DETAIL_COMPONENT_MAPPING_H |