use insert function instead of for loop
[LibreOffice.git] / include / osl / detail / android-bootstrap.h
blob169f3efaf282dca30dadcc318f83d3d1ebd67e54
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_ANDROID_BOOTSTRAP_H
11 #define INCLUDED_OSL_DETAIL_ANDROID_BOOTSTRAP_H
13 #if defined(ANDROID)
15 #include <jni.h>
16 #include <dirent.h>
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
22 #include <osl/detail/component-mapping.h>
23 #include <android/asset_manager.h>
25 typedef struct lo_apk_dir lo_apk_dir;
27 void *lo_apkentry(const char *filename,
28 size_t *size);
30 lo_apk_dir *lo_apk_opendir(const char *dirname);
32 struct dirent *lo_apk_readdir(lo_apk_dir *dirp);
34 int lo_apk_closedir(lo_apk_dir *dirp);
36 int lo_apk_lstat(const char *path, struct stat *statp);
38 /// "libreofficekit_" prefix, because it is exported from the .so, when we are
39 /// initializing the JNI externally.
40 void libreofficekit_set_javavm(JavaVM *vm);
42 JavaVM *lo_get_javavm(void);
44 const char *lo_get_app_data_dir(void);
46 AAssetManager *lo_get_native_assetmgr(void);
48 int setup_cdir(void);
49 int setup_assets_tree(void);
51 #ifdef __cplusplus
53 #endif
55 #endif // ANDROID
57 #endif // ANDROID_BOOTSTRAP_H
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */