826643f6104b67d7728db8e578cee325d61781ba
[cacao.git] / src / native / vm / nativevm.hpp
1 /* src/native/vm/nativevm.hpp - Register native VM interface functions.
2
3    Copyright (C) 2007, 2008
4    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5
6    This file is part of CACAO.
7
8    This program is free software; you can redistribute it and/or
9    modify it under the terms of the GNU General Public License as
10    published by the Free Software Foundation; either version 2, or (at
11    your option) any later version.
12
13    This program is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21    02110-1301, USA.
22
23 */
24
25
26 #ifndef _NATIVEVM_HPP
27 #define _NATIVEVM_HPP
28
29 #include "config.h"
30
31 /* function prototypes ********************************************************/
32
33 void nativevm_preinit(void);
34 void nativevm_init(void);
35
36 #if defined(ENABLE_JAVASE)
37 # if defined(WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH)
38
39 void _Jv_gnu_classpath_VMStackWalker_init();
40 void _Jv_gnu_classpath_VMSystemProperties_init();
41 void _Jv_gnu_java_lang_VMCPStringBuilder_init();
42 void _Jv_gnu_java_lang_management_VMClassLoadingMXBeanImpl_init();
43 void _Jv_gnu_java_lang_management_VMMemoryMXBeanImpl_init();
44 void _Jv_gnu_java_lang_management_VMRuntimeMXBeanImpl_init();
45 void _Jv_gnu_java_lang_management_VMThreadMXBeanImpl_init();
46 void _Jv_java_lang_VMClass_init();
47 void _Jv_java_lang_VMClassLoader_init();
48 void _Jv_java_lang_VMObject_init();
49 void _Jv_java_lang_VMRuntime_init();
50 void _Jv_java_lang_VMString_init();
51 void _Jv_java_lang_VMSystem_init();
52 void _Jv_java_lang_VMThread_init();
53 void _Jv_java_lang_VMThrowable_init();
54 void _Jv_java_lang_management_VMManagementFactory_init();
55 void _Jv_java_lang_reflect_VMConstructor_init();
56 void _Jv_java_lang_reflect_VMField_init();
57 void _Jv_java_lang_reflect_VMMethod_init();
58 void _Jv_java_lang_reflect_VMProxy_init();
59 void _Jv_java_security_VMAccessController_init();
60 void _Jv_java_util_concurrent_atomic_AtomicLong_init();
61 void _Jv_sun_misc_Unsafe_init();
62
63 #if defined(ENABLE_ANNOTATIONS)
64 void _Jv_sun_reflect_ConstantPool_init();
65 #endif
66
67 # elif defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
68
69 void _Jv_sun_misc_Unsafe_init();
70
71 # else
72 #  error unknown classpath configuration
73 # endif
74
75 #elif defined(ENABLE_JAVAME_CLDC1_1)
76
77 void _Jv_com_sun_cldc_io_ResourceInputStream_init();
78 void _Jv_com_sun_cldc_io_j2me_socket_Protocol_init();
79 void _Jv_com_sun_cldchi_io_ConsoleOutputStream_init();
80 void _Jv_com_sun_cldchi_jvm_JVM_init();
81 void _Jv_java_lang_Class_init();
82 void _Jv_java_lang_Double_init();
83 void _Jv_java_lang_Float_init();
84 void _Jv_java_lang_Math_init();
85 void _Jv_java_lang_Object_init();
86 void _Jv_java_lang_Runtime_init();
87 void _Jv_java_lang_String_init();
88 void _Jv_java_lang_System_init();
89 void _Jv_java_lang_Thread_init();
90 void _Jv_java_lang_Throwable_init();
91
92 #else
93 # error unknown Java configuration
94 #endif
95
96 #endif // _NATIVEVM_HPP
97
98
99 /*
100  * These are local overrides for various environment variables in Emacs.
101  * Please do not remove this and leave it at the end of the file, where
102  * Emacs will automagically detect them.
103  * ---------------------------------------------------------------------
104  * Local variables:
105  * mode: c++
106  * indent-tabs-mode: t
107  * c-basic-offset: 4
108  * tab-width: 4
109  * End:
110  * vim:noexpandtab:sw=4:ts=4:
111  */