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_ANDROID_BOOTSTRAP_H
11 #define INCLUDED_OSL_DETAIL_ANDROID_BOOTSTRAP_H
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
,
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);
49 int setup_assets_tree(void);
57 #endif // ANDROID_BOOTSTRAP_H
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */