Merged trunk and subtype.
[cacao.git] / src / native / vm / nativevm.h
1 /* src/native/vm/nativevm.h - register the native 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_H
27 #define _NATIVEVM_H
28
29 #include "config.h"
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 #include "vm/types.h"
36
37 #include "vm/global.h"
38
39
40 /* function prototypes ********************************************************/
41
42 void nativevm_preinit(void);
43 void nativevm_init(void);
44
45 #if defined(ENABLE_JAVASE)
46 # if defined(WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH)
47
48 void _Jv_gnu_classpath_VMStackWalker_init();
49 void _Jv_gnu_classpath_VMSystemProperties_init();
50 void _Jv_gnu_java_lang_VMCPStringBuilder_init();
51 void _Jv_gnu_java_lang_management_VMClassLoadingMXBeanImpl_init();
52 void _Jv_gnu_java_lang_management_VMMemoryMXBeanImpl_init();
53 void _Jv_gnu_java_lang_management_VMRuntimeMXBeanImpl_init();
54 void _Jv_gnu_java_lang_management_VMThreadMXBeanImpl_init();
55 void _Jv_java_lang_VMClass_init();
56 void _Jv_java_lang_VMClassLoader_init();
57 void _Jv_java_lang_VMObject_init();
58 void _Jv_java_lang_VMRuntime_init();
59 void _Jv_java_lang_VMString_init();
60 void _Jv_java_lang_VMSystem_init();
61 void _Jv_java_lang_VMThread_init();
62 void _Jv_java_lang_VMThrowable_init();
63 void _Jv_java_lang_management_VMManagementFactory_init();
64 void _Jv_java_lang_reflect_VMConstructor_init();
65 void _Jv_java_lang_reflect_VMField_init();
66 void _Jv_java_lang_reflect_VMMethod_init();
67 void _Jv_java_lang_reflect_VMProxy_init();
68 void _Jv_java_security_VMAccessController_init();
69 void _Jv_java_util_concurrent_atomic_AtomicLong_init();
70 void _Jv_sun_misc_Unsafe_init();
71
72 #if defined(ENABLE_ANNOTATIONS)
73 void _Jv_sun_reflect_ConstantPool_init();
74 #endif
75
76 # elif defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
77
78 void _Jv_sun_misc_Unsafe_init();
79
80 # else
81 #  error unknown classpath configuration
82 # endif
83
84 #elif defined(ENABLE_JAVAME_CLDC1_1)
85
86 void _Jv_com_sun_cldc_io_ResourceInputStream_init();
87 void _Jv_com_sun_cldc_io_j2me_socket_Protocol_init();
88 void _Jv_com_sun_cldchi_io_ConsoleOutputStream_init();
89 void _Jv_com_sun_cldchi_jvm_JVM_init();
90 void _Jv_java_lang_Class_init();
91 void _Jv_java_lang_Double_init();
92 void _Jv_java_lang_Float_init();
93 void _Jv_java_lang_Math_init();
94 void _Jv_java_lang_Object_init();
95 void _Jv_java_lang_Runtime_init();
96 void _Jv_java_lang_String_init();
97 void _Jv_java_lang_System_init();
98 void _Jv_java_lang_Thread_init();
99 void _Jv_java_lang_Throwable_init();
100
101 #else
102 # error unknown Java configuration
103 #endif
104
105 #ifdef __cplusplus
106 }
107 #endif
108
109 #endif /* _NATIVEVM_H */
110
111
112 /*
113  * These are local overrides for various environment variables in Emacs.
114  * Please do not remove this and leave it at the end of the file, where
115  * Emacs will automagically detect them.
116  * ---------------------------------------------------------------------
117  * Local variables:
118  * mode: c
119  * indent-tabs-mode: t
120  * c-basic-offset: 4
121  * tab-width: 4
122  * End:
123  */