f2b824bcc8a4572d7d9ae5efd63e515a0d3522f1
[cacao.git] / src / native / vm / nativevm.h
1 /* src/native/vm/nativevm.h - register the native functions
2
3    Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
4    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5    E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6    J. Wenninger, Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License as
12    published by the Free Software Foundation; either version 2, or (at
13    your option) any later version.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    $Id: native.c 7906 2007-05-14 17:25:33Z twisti $
26
27 */
28
29
30 #ifndef _NATIVEVM_H
31 #define _NATIVEVM_H
32
33 #include "config.h"
34 #include "vm/types.h"
35
36 #include "vm/global.h"
37
38
39 /* function prototypes ********************************************************/
40
41 bool nativevm_preinit(void);
42 bool nativevm_init(void);
43
44 #if defined(ENABLE_JAVASE)
45
46 # if defined(WITH_CLASSPATH_GNU)
47
48 void _Jv_gnu_classpath_VMStackWalker_init();
49 void _Jv_gnu_classpath_VMSystemProperties_init();
50 void _Jv_gnu_java_lang_management_VMClassLoadingMXBeanImpl_init();
51 void _Jv_gnu_java_lang_management_VMMemoryMXBeanImpl_init();
52 void _Jv_gnu_java_lang_management_VMRuntimeMXBeanImpl_init();
53 void _Jv_gnu_java_lang_management_VMThreadMXBeanImpl_init();
54 void _Jv_java_lang_VMClass_init();
55 void _Jv_java_lang_VMClassLoader_init();
56 void _Jv_java_lang_VMObject_init();
57 void _Jv_java_lang_VMRuntime_init();
58 void _Jv_java_lang_VMString_init();
59 void _Jv_java_lang_VMSystem_init();
60 void _Jv_java_lang_VMThread_init();
61 void _Jv_java_lang_VMThrowable_init();
62 void _Jv_java_lang_management_VMManagementFactory_init();
63 void _Jv_java_lang_reflect_Constructor_init();
64 void _Jv_java_lang_reflect_Field_init();
65 void _Jv_java_lang_reflect_Method_init();
66 void _Jv_java_lang_reflect_VMProxy_init();
67 void _Jv_java_security_VMAccessController_init();
68 void _Jv_java_util_concurrent_atomic_AtomicLong_init();
69 void _Jv_sun_misc_Unsafe_init();
70
71 #if defined(ENABLE_ANNOTATIONS)
72 void _Jv_sun_reflect_ConstantPool_init();
73 #endif
74
75 # elif defined(WITH_CLASSPATH_SUN)
76
77 void _Jv_sun_misc_Unsafe_init();
78
79 # else
80
81 #  error unknown classpath configuration
82
83 # endif
84
85 #elif defined(ENABLE_JAVAME_CLDC1_1)
86
87 void _Jv_com_sun_cldc_io_ResourceInputStream_init();
88 void _Jv_com_sun_cldc_io_j2me_socket_Protocol_init();
89 void _Jv_com_sun_cldchi_io_ConsoleOutputStream_init();
90 void _Jv_com_sun_cldchi_jvm_JVM_init();
91 void _Jv_java_lang_Class_init();
92 void _Jv_java_lang_Double_init();
93 void _Jv_java_lang_Float_init();
94 void _Jv_java_lang_Math_init();
95 void _Jv_java_lang_Object_init();
96 void _Jv_java_lang_Runtime_init();
97 void _Jv_java_lang_String_init();
98 void _Jv_java_lang_System_init();
99 void _Jv_java_lang_Thread_init();
100 void _Jv_java_lang_Throwable_init();
101
102 #else
103
104 # error unknown Java configuration
105
106 #endif
107
108 #endif /* _NATIVEVM_H */
109
110 /*
111  * These are local overrides for various environment variables in Emacs.
112  * Please do not remove this and leave it at the end of the file, where
113  * Emacs will automagically detect them.
114  * ---------------------------------------------------------------------
115  * Local variables:
116  * mode: c
117  * indent-tabs-mode: t
118  * c-basic-offset: 4
119  * tab-width: 4
120  * End:
121  */