diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-04-09 22:38:26 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-04-09 22:43:52 +0300 |
commit | 0b165a6e0a2eb79b2267810edb8cfaa34107ba94 (patch) | |
tree | 5053d2cfbb887d64880763fd6662f25db7695ce6 /sal | |
parent | 78fbda359c1b745a271753a44b80512c040fac0f (diff) |
Add a header for iOS-specific low-level stuff
Diffstat (limited to 'sal')
-rw-r--r-- | sal/Package_inc.mk | 1 | ||||
-rw-r--r-- | sal/inc/osl/detail/ios-bootstrap.h | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/sal/Package_inc.mk b/sal/Package_inc.mk index 5350faf19f46..1bce8ecd4aba 100644 --- a/sal/Package_inc.mk +++ b/sal/Package_inc.mk @@ -66,6 +66,7 @@ $(eval $(call gb_Package_add_file,sal_inc,inc/osl/util.h,osl/util.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/file.h,osl/detail/file.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/android_native_app_glue.h,osl/detail/android_native_app_glue.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/android-bootstrap.h,osl/detail/android-bootstrap.h)) +$(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/ios-bootstrap.h,osl/detail/ios-bootstrap.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/rtl/allocator.hxx,rtl/allocator.hxx)) $(eval $(call gb_Package_add_file,sal_inc,inc/rtl/alloc.h,rtl/alloc.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/rtl/bootstrap.h,rtl/bootstrap.h)) diff --git a/sal/inc/osl/detail/ios-bootstrap.h b/sal/inc/osl/detail/ios-bootstrap.h new file mode 100644 index 000000000000..ac8ccf6562ef --- /dev/null +++ b/sal/inc/osl/detail/ios-bootstrap.h @@ -0,0 +1,60 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http: *www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2011 Tor Lillqvist <tml@iki.fi> (initial developer) + * Copyright (C) 2011 SUSE Linux http://suse.com (initial developer's employer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#ifndef IOS_BOOSTRAP_H +#define IOS_BOOSTRAP_H + +#if defined(IOS) + +#ifdef __cplusplus +extern "C" { +#endif + +/* On iOS static linking 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 { + const char *lib; + void * (*component_getFactory_function)(const char *, void *, void *); +} lib_to_component_mapping; + +const lib_to_component_mapping *lo_get_libmap(void); + +#ifdef __cplusplus +} +#endif + +#endif // IOS +#endif // IOS_BOOTSTRAP_H + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |