My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
android-bootstrap.h
Go to the documentation of this file.
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
4  *
5  * The contents of this file are subject to the Mozilla Public License Version
6  * 1.1 (the "License"); you may not use this file except in compliance with
7  * the License or as specified alternatively below. You may obtain a copy of
8  * the License at http: *www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12  * for the specific language governing rights and limitations under the
13  * License.
14  *
15  * Major Contributor(s):
16  * Copyright (C) 2011 Tor Lillqvist <tml@iki.fi> (initial developer)
17  * Copyright (C) 2011 SUSE Linux http://suse.com (initial developer's employer)
18  *
19  * All Rights Reserved.
20  *
21  * For minor contributions see the git repository.
22  *
23  * Alternatively, the contents of this file may be used under the terms of
24  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
25  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
26  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
27  * instead of those above.
28  */
29 
30 #ifndef ANDROID_BOOSTRAP_H
31 #define ANDROID_BOOSTRAP_H
32 #if defined(ANDROID)
33 
34 #include <jni.h>
35 #include <dlfcn.h>
36 #include <dirent.h>
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 typedef struct lo_apk_dir lo_apk_dir;
43 
44 char **lo_dlneeds(const char *library);
45 
46 void *lo_dlopen(const char *library);
47 
48 void *lo_dlsym(void *handle,
49  const char *symbol);
50 
51 int lo_dladdr(void *addr,
52  Dl_info *info);
53 
54 int lo_dlclose(void *handle);
55 
56 void *lo_apkentry(const char *filename,
57  size_t *size);
58 
59 lo_apk_dir *lo_apk_opendir(const char *dirname);
60 
61 struct dirent *lo_apk_readdir(lo_apk_dir *dirp);
62 
63 int lo_apk_closedir(lo_apk_dir *dirp);
64 
65 int lo_apk_lstat(const char *path, struct stat *statp);
66 
67 int lo_dlcall_argc_argv(void *function,
68  int argc,
69  const char **argv);
70 
71 JavaVM *lo_get_javavm(void);
72 
73 struct android_app *lo_get_app(void);
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif // ANDROID
80 #endif // ANDROID_BOOTSTRAP_H
81 
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */